:root {
    --primary-color: #00ff00;
    --secondary-color: #00ffff;
    --background-color: #000000;
    --text-color: #ffffff;
    --glitch-color: #ff00ff;
}

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

body {
    font-family: 'Arial', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Glitch Overlay */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    z-index: 1;
    animation: glitch 2s infinite;
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    letter-spacing: -1px;
}

/* AI/ML Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    gap: 2rem;
}

/* 3D Lab Container */
#lab-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-color: rgba(255, 0, 0, 0.1); /* Temporary background for debugging */
}

#lab-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.ai-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(41, 121, 255, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(138, 99, 255, 0.1) 0%, transparent 25%),
        linear-gradient(135deg, #0a0c17 0%, #13172c 100%);
    z-index: 1;
}

/* Neural Network Background */
.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    z-index: 2;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(41, 121, 255, 0.05) 0%, transparent 50%),
        linear-gradient(90deg, transparent 49%, rgba(138, 99, 255, 0.1) 50%, transparent 51%);
    background-size: 100px 100px, 100% 100%;
    animation: networkPulse 15s infinite alternate;
}

@keyframes networkPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* AI Terminal */
.ai-terminal {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    z-index: 10;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ai-terminal:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 12px;
}

.terminal-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.2s;
}

.terminal-btn.red { background: #ff5f56; }
.terminal-btn.yellow { background: #ffbd2e; }
.terminal-btn.green { background: #27c93f; }

.terminal-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
}

.terminal-body {
    padding: 1.8rem;
    min-height: 180px;
    font-family: 'Fira Code', monospace;
    line-height: 1.8;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
}

.prompt {
    color: #7fdbff;
    margin-right: 10px;
    font-weight: 500;
}

.typing {
    color: #e0e0e0;
    font-weight: 400;
    position: relative;
}

.typing::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 1s step-end infinite;
    color: #7fdbff;
}

@keyframes blink {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

/* AI CTA */
.ai-cta {
    text-align: center;
    margin: 3rem 0;
    position: relative;
    z-index: 10;
}

.ai-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #7f5fff, #01c8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(90deg, #01c8ff, #7f5fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.ai-text p {
    font-size: 1.2rem;
    color: rgba(224, 224, 224, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* AI Button */
.ai-button {
    position: relative;
    background: linear-gradient(90deg, #7f5fff, #01c8ff);
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(127, 95, 255, 0.3);
}

.ai-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(127, 95, 255, 0.4);
}

.ai-button:active {
    transform: translateY(1px);
}

.ai-button__icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.ai-button:hover .ai-button__icon {
    transform: translateX(5px);
}

/* 3D Lab Container */
#lab-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    transition: opacity 1s ease-in-out;
}

/* Adjust hero content to be above 3D background */
.hero .container {
    position: relative;
    z-index: 2;
}

/* AI Elements */
.ai-elements {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    z-index: 5;
}

.ai-element {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-element::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(127, 95, 255, 0.1), rgba(1, 200, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-element:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.ai-element:hover::before {
    opacity: 1;
}

.ai-element i {
    position: relative;
    z-index: 1;
}

.ai-element[data-tooltip] {
    position: relative;
}

.ai-element[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.ai-element[data-tooltip]:hover::after {
    opacity: 1;
    transform: translate(-50%, -5px);
}

/* AI Hint */
.ai-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 300;
}

.pulse {
    animation: pulse 2s infinite;
    font-size: 1.5rem;
    color: #7f5fff;
}

@keyframes pulse {
    0% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.5; }
}

/* AI Particles */
.ai-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 30%, rgba(127, 95, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(1, 200, 255, 0.05) 0%, transparent 20%);
}

/* Neural Network Animation */
.neural-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(127, 95, 255, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(127, 95, 255, 0.5);
    animation: pulse 3s infinite ease-in-out;
    z-index: 1;
}

.neural-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, rgba(127, 95, 255, 0.3), rgba(1, 200, 255, 0.3));
    transform-origin: 0 50%;
    z-index: 0;
    transition: all 0.3s ease;
}

/* Content Particles */
.content-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite linear;
    opacity: 0.5;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Transition Effects */
.hero.transitioning {
    animation: fadeOut 1s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0.3;
        filter: blur(2px);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ai-text h1 {
        font-size: 2.5rem;
    }
    
    .ai-elements {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .ai-element {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ai-text h1 {
        font-size: 2rem;
    }
    
    .ai-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    
    .terminal-body {
        padding: 1.2rem;
        min-height: 150px;
    }
}

/* Content Wrapper (initially hidden) */
.content-wrapper {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: relative;
    z-index: 20;
    background: #0a0c17;
    padding-top: 2rem;
}

.content-wrapper.visible {
    display: block;
    opacity: 1;
}

.pulse {
    animation: pulse 2s infinite;
    font-size: 1.5rem;
}

@keyframes pulse {
    0% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.5; }
}

/* Content Wrapper (initially hidden) */
.content-wrapper {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.content-wrapper.visible {
    display: block;
    opacity: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 20;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #ffffff, #00ff9d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.highlight {
    color: #00ff9d;
    -webkit-text-fill-color: #00ff9d;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #a0a0a0;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 30;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn.primary {
    background: #00ff9d;
    color: #000000;
    border: 2px solid #00ff9d;
}

.btn.primary:hover {
    background: transparent;
    color: #00ff9d;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 157, 0.2);
}

.btn.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #333333;
}

.btn.secondary:hover {
    border-color: #00ff9d;
    color: #00ff9d;
    transform: translateY(-3px);
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    animation: float 6s infinite ease-in-out;
}

.element-1 {
    width: 300px;
    height: 300px;
    background-image: url('https://i.ibb.co/6n0hLML/3d-cube.png');
    top: 10%;
    left: 20%;
    animation-delay: 0.5s;
}

.element-2 {
    width: 200px;
    height: 200px;
    background-image: url('https://i.ibb.co/4Y8x8yC/3d-sphere.png');
    top: 40%;
    right: 15%;
    animation-delay: 1s;
}

.element-3 {
    width: 150px;
    height: 150px;
    background-image: url('https://i.ibb.co/4T3W6h2/3d-pyramid.png');
    bottom: 10%;
    left: 30%;
    animation-delay: 1.5s;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 10;
    animation: bounce 2s infinite;
}

.arrow-down {
    width: 20px;
    height: 40px;
    border: 2px solid #666666;
    border-radius: 10px;
    margin-top: 0.5rem;
    position: relative;
}

.arrow-down::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: #666666;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes scrollDown {
    0% {
        transform: translateY(0) translateX(-50%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(15px) translateX(-50%);
        opacity: 0;
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 1;
    }
}

/* About Section */
.about-content {
    text-align: center;
}

/* Experience Section */
.projects-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 1rem 1.5rem 2rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
.projects-grid::-webkit-scrollbar {
    height: 8px;
}
.projects-grid::-webkit-scrollbar-track {
    background: rgba(0, 255, 255, 0.05);
    border-radius: 10px;
}
.projects-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.2);
    border-radius: 10px;
}
.projects-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.4);
}

.skill-category {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(5px);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.2);
    border-color: rgba(0, 255, 0, 0.3);
}

/* Category-specific styles */
.skill-category[data-category="AI/ML"] {
    border-color: rgba(0, 255, 255, 0.1);
}

.skill-category[data-category="Cloud"] {
    border-color: rgba(0, 255, 0, 0.1);
}

.skill-category[data-category="Development"] {
    border-color: rgba(255, 0, 255, 0.1);
}

.skill-category[data-category="DSA"] {
    border-color: rgba(255, 255, 0, 0.1);
}

.skill-category[data-category="Hacking"] {
    border-color: rgba(255, 0, 0, 0.1);
}

.skill-category:hover {
    border-color: var(--primary-color);
}

.category-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.1);
}

.category-header i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.category-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background: transparent;
    border-radius: 2px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0, 255, 0, 0.1),
        rgba(0, 255, 255, 0.2),
        rgba(0, 255, 0, 0.1)
    );
    animation: flow 2s infinite linear;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0, 255, 0, 0.1),
        rgba(0, 255, 255, 0.1),
        rgba(0, 255, 0, 0.1)
    );
    animation: flow 1.5s infinite linear;
    animation-delay: 0.5s;
}

@keyframes flow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-items {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: calc(100% - 100px);
    overflow-y: auto;
}

.skill-items::-webkit-scrollbar {
    width: 4px;
}

.skill-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.skill-items::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.2);
    border-radius: 2px;
}

.project-item {
    background: linear-gradient(145deg, rgba(10, 15, 25, 0.8), rgba(20, 30, 40, 0.9));
    padding: 1.8rem;
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 255, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    transform: translateY(0);
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #00ff88);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-item:hover::before {
    transform: scaleX(1);
}

.project-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.project-item.clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.project-item.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.2);
}

.project-item.clickable:hover .project-content {
    background: rgba(0, 255, 0, 0.1);
}

/* Project Icon */
.project-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(0, 255, 0, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-left: auto;
    margin-right: auto;
}

.project-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.project-header h4 {
    font-size: 1.4rem;
    margin: 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.project-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-date i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.github-icon {
    color: #8a8a8a;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.project-item:hover .github-icon {
    color: var(--primary-color);
    background: rgba(0, 255, 0, 0.1);
    transform: translateY(-2px);
}

.github-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item.clickable:hover .github-icon {
    opacity: 1;
}

.project-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    opacity: 0.9;
}

.project-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
    font-weight: 300;
}

/* Project Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tags span {
    background: rgba(0, 255, 0, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.project-item:hover .project-tags span {
    background: rgba(0, 255, 0, 0.2);
}

/* Hover Effects */
.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 255, 0, 0.3);
}

.project-item:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(0, 255, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .project-item {
        padding: 1.5rem;
    }
    
    .project-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .project-header h4 {
        font-size: 1.3rem;
    }
}

.skill-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    transition: transform 0.5s ease;
}

.skill-item:hover::before {
    transform: translateX(100%);
}

.skill-item:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateX(5px);
}

/* reCAPTCHA */
.g-recaptcha {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    min-height: 78px; /* Prevent layout shift when loading */
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

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

.contact-form button {
    position: relative;
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #00ff00, #00ccff);
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}

.contact-form button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Spinner */
.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
}

.spinner.hidden {
    display: none;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form Messages */
.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.form-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    background-color: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.form-message.error {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff5555;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.skill-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
}

.skill-info {
    flex: 1;
    position: relative;
}

.skill-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 255, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-item:hover .skill-info::before {
    opacity: 1;
}

.skill-info h5 {
    margin: 0 0 0.5rem 0;
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 500;
}

.skill-info p {
    margin: 0;
    color: var(--text-color);
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.4;
}

.category-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-header i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.category-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 1s ease;
}

.skill-items {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateX(5px);
}

.skill-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-info {
    flex: 1;
}

.skill-info h5 {
    margin: 0 0 0.5rem 0;
    color: var(--secondary-color);
    font-size: 1rem;
}

.skill-info p {
    margin: 0;
    color: var(--text-color);
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.4;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    animation: pulse 2s infinite;
}

.card-content {
    position: relative;
    overflow: hidden;
}

.matrix-text {
    color: var(--text-color);
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    animation: matrix-fade 2s forwards;
}

@keyframes matrix-fade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto 0;
    padding: 0 2rem;
}

.main-skill-category {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(74, 222, 128, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.main-skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
}

.main-skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-skill-header i {
    font-size: 1.8rem;
    color: #4ade80;
    margin-right: 1rem;
    width: 2.5rem;
    text-align: center;
}

.main-skill-header h3 {
    color: #f8fafc;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
}

.skill-subcategories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
    flex-grow: 1;
    align-content: start;
}

.skill-tag {
    background: rgba(74, 222, 128, 0.08);
    color: #b0f3d1;
    padding: 2rem 1.5rem;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
    text-align: center;
    border: 1px solid rgba(74, 222, 128, 0.1);
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    min-height: 2.8rem;
}

.skill-tag:hover {
    background: rgba(74, 222, 128, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        padding: 0 1rem;
    }
    
    .skill-subcategories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-skill-category {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .skill-subcategories {
        grid-template-columns: 1fr;
    }
}

/* Currently Learning Section */
.currently-learning {
    padding: 2rem 1rem 4rem;
    background: rgba(10, 15, 30, 0.7);
    position: relative;
    overflow: hidden;
}

.learning-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 1rem;
    border: 1px solid rgba(74, 222, 128, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.learning-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.learning-header i {
    font-size: 2rem;
    color: #4ade80;
    margin-right: 1rem;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.learning-header h3 {
    color: #f8fafc;
    font-size: 1.6rem;
    margin: 0;
    font-weight: 600;
    background: linear-gradient(90deg, #4ade80, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.learning-date {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-left: 0.5rem;
    font-weight: 400;
}

.learning-tags {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
}

.learning-tag {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 0.8rem;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.learning-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.learning-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.12);
}

.learning-tag:hover::before {
    opacity: 1;
}

.learning-tag i {
    font-size: 1.4rem;
    color: #4ade80;
    margin-right: 1rem;
    min-width: 1.8rem;
    text-align: center;
}

.learning-tag span {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .learning-tags {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .learning-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .learning-tags {
        grid-template-columns: 1fr;
    }
    
    .learning-header h3 {
        font-size: 1.4rem;
    }
    
    .learning-tag {
        padding: 1rem 1.2rem;
    }
}

/* Projects Section */
.projects-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem; /* Give room for scrollbar */
    scroll-behavior: smooth;
}
.projects-grid::-webkit-scrollbar {
    height: 8px;
}
.projects-grid::-webkit-scrollbar-track {
    background: rgba(0, 255, 255, 0.05);
    border-radius: 10px;
}
.projects-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.2);
    border-radius: 10px;
}

.project-card {
    position: relative;
    height: 300px;
    flex: 0 0 320px; /* Fixed width for scrolling */
    scroll-snap-align: center;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
}

.project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.contact-form button {
    padding: 1rem;
    background: var(--primary-color);
    border: none;
    border-radius: 5px;
    color: var(--background-color);
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: var(--secondary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
}

.social-links {
    margin-bottom: 1rem;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--primary-color);
}

/* Glitch Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--glitch-color);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--glitch-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--glitch-color);
    clip: rect(84px, 450px, 96px, 0);
    animation: glitch-anim2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% {
        clip: rect(84px, 9999px, 96px, 0);
    }
    20% {
        clip: rect(80px, 9999px, 92px, 0);
    }
    40% {
        clip: rect(76px, 9999px, 88px, 0);
    }
    60% {
        clip: rect(72px, 9999px, 84px, 0);
    }
    80% {
        clip: rect(68px, 9999px, 80px, 0);
    }
    100% {
        clip: rect(64px, 9999px, 76px, 0);
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(44px, 450px, 56px, 0);
    }
    20% {
        clip: rect(40px, 450px, 52px, 0);
    }
    40% {
        clip: rect(36px, 450px, 48px, 0);
    }
    60% {
        clip: rect(32px, 450px, 44px, 0);
    }
    80% {
        clip: rect(28px, 450px, 40px, 0);
    }
    100% {
        clip: rect(24px, 450px, 36px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(84px, 450px, 96px, 0);
    }
    20% {
        clip: rect(80px, 450px, 92px, 0);
    }
    40% {
        clip: rect(76px, 450px, 88px, 0);
    }
    60% {
        clip: rect(72px, 450px, 84px, 0);
    }
    80% {
        clip: rect(68px, 450px, 80px, 0);
    }
    100% {
        clip: rect(64px, 450px, 76px, 0);
    }
}

/* 3D Model Container */
#computer-model {
    width: 100%;
    height: 400px;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

#computer-model canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    pointer-events: auto;
}

/* Make sure the hero content stays above the 3D model */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Ensure all interactive elements in hero section are clickable */
.hero-buttons .btn,
.hero-buttons .btn-outline {
    position: relative;
    z-index: 3;
}

/* Projects Showcase Section - New Implementation */
.projects-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Project Card Base Styling with Enhanced Cyberpunk Aesthetics */
.project-card {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    /* Enhanced glassmorphism effect */
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(20, 20, 40, 0.85) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
    /* Subtle inner glow */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

/* Enhanced Animated Gradient Border with Cyberpunk Colors */
.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #ff00ff, #00ffff, #ffff00, #ff0080, #80ff00, 
        #00ff80, #8000ff, #ff8000, #0080ff, #ff00ff);
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderGradient 3s linear infinite;
    /* Enhanced glow effect */
    filter: blur(0.5px);
}

.project-card:hover::before {
    opacity: 1;
}

@keyframes borderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Enhanced Glassmorphism Overlay with Cyberpunk Effects */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    z-index: -1;
    transition: all 0.4s ease;
    /* Subtle cyberpunk pattern overlay */
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.02) 50%, transparent 51%);
    background-size: 100px 100px, 100px 100px, 20px 20px;
}

.project-card:hover::after {
    background: rgba(255, 255, 255, 0.05);
    /* Enhanced pattern visibility on hover */
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.04) 50%, transparent 51%);
}

/* Enhanced Project Card Hover Effects with Cyberpunk Aesthetics */
.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 255, 0.2),
        0 0 60px rgba(255, 0, 255, 0.1);
    /* Enhanced border visibility on hover */
    border-color: rgba(255, 255, 255, 0.2);
}

/* Project card content structure */
.project-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.15) 0%, 
        rgba(255, 0, 255, 0.15) 50%, 
        rgba(255, 255, 0, 0.15) 100%);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Icon glow effect */
.project-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 18px;
}

.project-header {
    margin-bottom: 1.2rem;
    position: relative;
}

.project-header h4 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    /* Enhanced cyberpunk title styling */
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(0, 255, 255, 0.2),
        0 0 30px rgba(255, 0, 255, 0.1);
    position: relative;
    z-index: 1;
}

.project-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
    font-weight: 300;
    text-align: center;
    /* Enhanced readability with subtle glow */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    justify-content: center;
}

.tech-tag {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.1) 0%, 
        rgba(255, 0, 255, 0.1) 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    /* Subtle glow effect */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Tech tag shimmer effect */
.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.project-card:hover .tech-tag {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.2) 0%, 
        rgba(255, 0, 255, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-card:hover .tech-tag::before {
    left: 100%;
}

/* CSS Custom Properties for theming */
:root {
    --project-card-bg: rgba(0, 0, 0, 0.9);
    --project-card-border: rgba(255, 255, 255, 0.1);
    --project-card-hover-bg: rgba(0, 0, 0, 0.95);
    --project-card-text: rgba(255, 255, 255, 0.8);
    --project-card-title: #ffffff;
    --project-tech-bg: rgba(255, 255, 255, 0.1);
    --project-tech-text: rgba(255, 255, 255, 0.9);
    --project-glow-primary: #00ff00;
    --project-glow-secondary: #00ffff;
    --project-glow-accent: #ff00ff;
}

/* Responsive Grid System */
@media (max-width: 1024px) {
    .projects-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .projects-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .project-card {
        padding: 1.5rem;
        min-height: 320px;
    }
    
    .project-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .project-header h4 {
        font-size: 1.3rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .projects-showcase {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .project-card {
        padding: 1.2rem;
        min-height: 300px;
    }
    
    .project-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    .project-header h4 {
        font-size: 1.2rem;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
}

/* Enhanced glow effects for project cards */
.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.25) 0%, 
        rgba(255, 0, 255, 0.25) 50%, 
        rgba(255, 255, 0, 0.25) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.project-card:hover .project-icon::before {
    opacity: 1;
}

/* Neon glow effects matching existing theme */
.project-card.glow-primary {
    border-color: rgba(0, 255, 0, 0.3);
}

.project-card.glow-primary:hover {
    box-shadow: 0 20px 40px rgba(0, 255, 0, 0.2), 0 0 30px rgba(0, 255, 0, 0.3);
}

.project-card.glow-secondary {
    border-color: rgba(0, 255, 255, 0.3);
}

.project-card.glow-secondary:hover {
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2), 0 0 30px rgba(0, 255, 255, 0.3);
}

.project-card.glow-accent {
    border-color: rgba(255, 0, 255, 0.3);
}

.project-card.glow-accent:hover {
    box-shadow: 0 20px 40px rgba(255, 0, 255, 0.2), 0 0 30px rgba(255, 0, 255, 0.3);
}

/* Color-coded borders for different project types */
.project-card[data-category="ai-ml"] {
    border-color: rgba(0, 255, 255, 0.2);
}

.project-card[data-category="ai-ml"]:hover {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2), 0 0 30px rgba(0, 255, 255, 0.4);
}

.project-card[data-category="web-dev"] {
    border-color: rgba(0, 255, 0, 0.2);
}

.project-card[data-category="web-dev"]:hover {
    border-color: rgba(0, 255, 0, 0.5);
    box-shadow: 0 20px 40px rgba(0, 255, 0, 0.2), 0 0 30px rgba(0, 255, 0, 0.4);
}

.project-card[data-category="dashboard"] {
    border-color: rgba(255, 0, 255, 0.2);
}

.project-card[data-category="dashboard"]:hover {
    border-color: rgba(255, 0, 255, 0.5);
    box-shadow: 0 20px 40px rgba(255, 0, 255, 0.2), 0 0 30px rgba(255, 0, 255, 0.4);
}

.project-card[data-category="space-tech"] {
    border-color: rgba(255, 255, 0, 0.2);
}

.project-card[data-category="space-tech"]:hover {
    border-color: rgba(255, 255, 0, 0.5);
    box-shadow: 0 20px 40px rgba(255, 255, 0, 0.2), 0 0 30px rgba(255, 255, 0, 0.4);
}

/* Prefers reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
    .project-card {
        transition: none;
    }
    
    .project-card::before {
        animation: none;
    }
    
    .project-card:hover {
        transform: none;
    }
    
    .project-icon {
        transition: none;
    }
    
    .project-card:hover .project-icon {
        transform: none;
    }
}

/* Cyberpunk Scan Line Effect for Project Cards */
.project-card::after {
    /* Add scan line animation */
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.02) 50%, transparent 51%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px
        );
    background-size: 100px 100px, 100px 100px, 20px 20px, 100% 4px;
    animation: scanLines 8s linear infinite;
}

@keyframes scanLines {
    0% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
    100% { background-position: 100% 100%, -100% -100%, 50% 50%, 0% 100%; }
}

/* Enhanced Color-Coded Borders with Pulsing Effect */
.project-card[data-category="ai-ml"] {
    border-color: rgba(0, 255, 255, 0.3);
    animation: pulseAI 3s ease-in-out infinite;
}

.project-card[data-category="web-dev"] {
    border-color: rgba(0, 255, 0, 0.3);
    animation: pulseWeb 3s ease-in-out infinite;
}

.project-card[data-category="dashboard"] {
    border-color: rgba(255, 0, 255, 0.3);
    animation: pulseDash 3s ease-in-out infinite;
}

.project-card[data-category="space-tech"] {
    border-color: rgba(255, 255, 0, 0.3);
    animation: pulseSpace 3s ease-in-out infinite;
}

@keyframes pulseAI {
    0%, 100% { 
        border-color: rgba(0, 255, 255, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 rgba(0, 255, 255, 0.4);
    }
    50% { 
        border-color: rgba(0, 255, 255, 0.6);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 255, 0.4);
    }
}

@keyframes pulseWeb {
    0%, 100% { 
        border-color: rgba(0, 255, 0, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 rgba(0, 255, 0, 0.4);
    }
    50% { 
        border-color: rgba(0, 255, 0, 0.6);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 0, 0.4);
    }
}

@keyframes pulseDash {
    0%, 100% { 
        border-color: rgba(255, 0, 255, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 rgba(255, 0, 255, 0.4);
    }
    50% { 
        border-color: rgba(255, 0, 255, 0.6);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 0, 255, 0.4);
    }
}

@keyframes pulseSpace {
    0%, 100% { 
        border-color: rgba(255, 255, 0, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 rgba(255, 255, 0, 0.4);
    }
    50% { 
        border-color: rgba(255, 255, 0, 0.6);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 0, 0.4);
    }
}

/* Enhanced Hover Effects with Multiple Glow Layers */
.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 255, 0.2),
        0 0 60px rgba(255, 0, 255, 0.1),
        0 0 100px rgba(255, 255, 0, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Cyberpunk Data Stream Effect */
.project-card:hover::after {
    animation-duration: 2s;
}

/* Enhanced Typography with Cyberpunk Glow */
.project-header h4 {
    background: linear-gradient(90deg, #ffffff, #00ffff, #ffffff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Holographic Effect on Hover */
.project-card:hover .project-header h4 {
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(0, 255, 255, 0.6),
        0 0 15px rgba(255, 0, 255, 0.4),
        0 0 20px rgba(255, 255, 0, 0.2);
    animation-duration: 1.5s;
}

/* ==============================================================
   Experience & Education Section
   ============================================================== */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.experience-column {
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.05),
                0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.experience-column:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 255, 0.3);
}

.column-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.column-title i {
    color: #00ffff;
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 20px;
    bottom: -2.5rem;
    width: 2px;
    background: linear-gradient(to bottom, #00ffff, rgba(0, 255, 255, 0.1));
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #000;
    border: 2px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: #00ffff;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 1);
}

.timeline-content h4 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.timeline-meta {
    font-size: 0.9rem;
    color: #00ffff;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-family: 'Fira Code', monospace;
}

.timeline-content p {
    color: #b0c4de;
    line-height: 1.6;
    font-size: 0.95rem;
}

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

/* ==============================================================
   Achievements Section
   ============================================================== */
.achievements-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem; /* Give room for scrollbar */
    position: relative;
    z-index: 10;
    scroll-behavior: smooth;
}
.achievements-grid::-webkit-scrollbar {
    height: 8px;
}
.achievements-grid::-webkit-scrollbar-track {
    background: rgba(255, 0, 255, 0.05);
    border-radius: 10px;
}
.achievements-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 255, 0.2);
    border-radius: 10px;
}

.achievement-card {
    position: relative;
    flex: 0 0 min(90vw, 380px); /* Fixed width for scroll */
    scroll-snap-align: center;
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: border-color 0.4s ease;
    box-shadow: inset 0 0 15px rgba(255, 0, 255, 0.1),
                0 15px 35px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
    cursor: crosshair;
    animation: borderPulseMagenta 4s ease-in-out infinite;
}

@keyframes borderPulseMagenta {
    0%, 100% { border-color: rgba(255, 0, 255, 0.3); box-shadow: 0 0 10px rgba(255, 0, 255, 0.2); }
    50% { border-color: rgba(255, 0, 255, 0.7); box-shadow: 0 0 20px rgba(255, 0, 255, 0.5); }
}

.achievement-card:hover {
    border-color: #ff00ff;
}

.achievement-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,0,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.achievement-card:hover .achievement-card-glow {
    opacity: 1;
}

.achievement-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transform: translateZ(30px);
}

.achievement-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.5));
    transform: translateZ(50px);
}

.achievement-info {
    transform: translateZ(20px);
}

.achievement-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.achievement-info p {
    color: #b0c4de;
    line-height: 1.5;
    font-size: 0.95rem;
}

.achievement-info strong {
    color: #00ffff;
    font-weight: 700;
}

/* ==============================================================
   Sexy Work Experience Cards (Vanilla Tilt)
   ============================================================== */
.exp-cards-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
    padding-bottom: 2rem;
    scroll-behavior: smooth;
}
.exp-cards-container::-webkit-scrollbar {
    height: 8px;
}
.exp-cards-container::-webkit-scrollbar-track {
    background: rgba(0, 255, 255, 0.05);
    border-radius: 10px;
}
.exp-cards-container::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.2);
    border-radius: 10px;
}

.exp-card {
    position: relative;
    flex: 0 0 min(90vw, 380px); /* Fixed width for scroll */
    scroll-snap-align: center;
    background: rgba(10, 15, 30, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.1),
                0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    background-clip: padding-box;
    border-image: linear-gradient(45deg, #00ffff, transparent, #00ffff) 1;
    animation: borderPulse 4s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: border-color 0.4s ease;
    cursor: crosshair;
}

@keyframes borderPulse {
    0%, 100% { border-color: rgba(0, 255, 255, 0.3); box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.1); }
    50% { border-color: rgba(0, 255, 255, 0.7); box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.3); }
}

.exp-card:hover {
    border-color: rgba(0, 255, 255, 0.8);
    transform: translateY(-5px);
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.2),
                0 20px 40px rgba(0, 0, 0, 0.6);
}

.exp-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.exp-card:hover .exp-card-glow {
    opacity: 1;
}

.exp-card-content {
    transform: translateZ(30px);
}

.exp-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.exp-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.4));
    transform: translateZ(50px);
}

.exp-header h4 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

.exp-meta {
    font-size: 0.9rem;
    color: #00ffff;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
}

.exp-card-content p {
    color: #b0c4de;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    transform: translateZ(20px);
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    transform: translateZ(40px);
}

.exp-tags span {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.exp-tags span:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ==============================================================
   Scroll Carousel Buttons
   ============================================================== */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.scroll-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
    color: #00ffff;
}

#scroll-left {
    left: -25px;
}

#scroll-right {
    right: -25px;
}

@media (max-width: 1250px) {
    #scroll-left {
        left: 5px;
    }
    #scroll-right {
        right: 5px;
    }
}
@media (max-width: 768px) {
    .scroll-btn {
        display: none; /* Rely on native swipe on mobile */
    }
}