/* Base Styles */
:root {
    --space-black: #050A18;
    --neon-cyan: #00FFFF;
    --neon-purple: #9000FF;
    --neon-orange: #FF9000;
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --grid-size: 50px;
}

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

body {
    background-color: var(--space-black);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

/* Custom Cursor */
#cursor-container {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Main Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header Section */
header {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

.holographic-name {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
    animation: hologramEffect 4s infinite alternate;
}

.title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 5px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

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

.location {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.coordinates {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--neon-orange);
    margin-top: 0.5rem;
    letter-spacing: 2px;
}

/* Section Styles */
section {
    margin: 8rem 0;
    position: relative;
    padding: 2rem;
    border-radius: 10px;
    background: rgba(5, 10, 24, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.1);
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

/* Experience Section */
.experience-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.experience-node {
    position: relative;
    padding: 2rem;
    background: rgba(144, 0, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(144, 0, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.experience-node:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(144, 0, 255, 0.2);
    background: rgba(144, 0, 255, 0.1);
}

.experience-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
}

.company-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--neon-purple);
}

.job-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.job-duration {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.job-details {
    list-style-type: none;
}

.job-details li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.job-details li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
}

/* Education Section */
.education-container {
    position: relative;
    margin-top: 3rem;
}

.education-timeline {
    position: relative;
    padding-left: 2rem;
}

.education-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple));
}

.education-item {
    position: relative;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

.education-item::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: -2.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
    z-index: 1;
}

.degree {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--neon-cyan);
}

.institution {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.education-duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Skills Section */
.skills-container {
    margin-top: 3rem;
}

.skills-constellation {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-category {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--neon-orange);
    position: relative;
    display: inline-block;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-orange), transparent);
}

.skill-item {
    background: rgba(255, 144, 0, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 144, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 144, 0, 0.1);
    box-shadow: 0 5px 15px rgba(255, 144, 0, 0.2);
}

.skill-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: var(--neon-orange);
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(8px);
}

/* Projects Section */
.project-showcase {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    perspective: 1000px;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-content {
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(5, 10, 24, 0.9), transparent);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.project-card:hover .project-content {
    transform: translateZ(20px);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--neon-cyan);
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--neon-cyan);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.footer-text {
    position: relative;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Animations */
@keyframes hologramEffect {
    0% {
        opacity: 0.8;
        filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.7));
    }
    100% {
        opacity: 0.9;
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.6));
    }
}

@keyframes scanLine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, transparent, var(--neon-cyan), transparent);
    opacity: 0.5;
    z-index: 998;
    pointer-events: none;
    animation: scanLine 8s linear infinite;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .holographic-name {
        font-size: 2.5rem;
    }

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

    .experience-container, .project-showcase {
        grid-template-columns: 1fr;
    }

    .skills-constellation {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 1.5rem;
    }
}

/* Contact Section Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info-large {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    background: rgba(0, 255, 255, 0.1);
}

.contact-method h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--neon-cyan);
}

.contact-method p {
    font-size: 1rem;
    color: var(--text-primary);
}

.contact-method a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: var(--neon-cyan);
}

.contact-form {
    background: rgba(144, 0, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(144, 0, 255, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--neon-purple);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(5, 10, 24, 0.8);
    border: 1px solid rgba(144, 0, 255, 0.3);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(144, 0, 255, 0.3);
}

.submit-btn {
    background: rgba(144, 0, 255, 0.2);
    color: var(--text-primary);
    border: 1px solid var(--neon-purple);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-family: 'JetBrains Mono', monospace;
    cursor: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: rgba(144, 0, 255, 0.4);
}

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

.submit-btn:hover::before {
    left: 100%;
}

@media screen and (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Updated Project Carousel Styles */
.carousel-container {
    width: 100%;
    overflow: hidden;
    margin: 30px 0;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px 0;
    position: relative;
    background: rgba(5, 10, 24, 0.6);
}

.carousel-track {
    display: flex;
    position: relative;
}

.project-card {
    flex: 0 0 auto;
    width: 300px;
    height: 300px;
    margin: 0 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(5, 10, 24, 0.9), transparent);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.project-card:hover .project-content {
    transform: translateZ(20px);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 1rem;
}

.control-btn {
    background: rgba(0, 255, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 5px;
    padding: 8px 20px;
    margin: 0 10px;
    cursor: none;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.control-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

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

.control-btn:hover::before {
    left: 100%;
}

/* Direction indicators */
.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    opacity: 0.5;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.3), transparent);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(270deg, rgba(0, 255, 255, 0.3), transparent);
}

/* Direction change effect animation */
@keyframes directionChange {
    0% { opacity: 0; }
    50% { opacity: 0.5; }
    100% { opacity: 0; }
}

.direction-change-effect {
    animation: directionChange 1s ease-out;
}

/* Hide navigation controls since it's continuously moving */
.carousel-navigation {
    display: none;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
                rgba(0, 255, 255, 0.1), 
                transparent 40%,
                transparent 60%,
                rgba(144, 0, 255, 0.1));
    z-index: 1;
    pointer-events: none;
}

.project-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: linear-gradient(45deg, var(--neon-cyan), transparent, var(--neon-purple)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, 
                linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card.active::after {
    opacity: 1;
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.2);
    cursor: none;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    transform: scale(1.2);
}

/* Add these media queries for responsiveness */
@media screen and (min-width: 768px) {
    .project-card {
        min-width: calc(50% - 4rem);
    }
}

@media screen and (min-width: 1200px) {
    .project-card {
        min-width: calc(33.333% - 4rem);
    }
}

/* CSS-only Carousel Styles */
.css-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(5, 10, 24, 0.6);
    padding: 30px 0;
    margin-top: 3rem;
}

.css-carousel-row {
    display: flex;
    position: relative;
    width: fit-content;
    padding: 20px 0;
}

/* First row animation - right to left */
.moving-left {
    animation: moveLeft 30s linear infinite;
}

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

/* Second row animation - left to right */
.moving-right {
    animation: moveRight 30s linear infinite;
}

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

/* Pause animation on hover */
.css-carousel-row:hover {
    animation-play-state: paused;
}

/* Project cards styles */
.css-carousel-container .project-card {
    flex: 0 0 auto;
    width: 280px;
    height: 280px;
    margin: 0 15px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.css-carousel-container .project-card:nth-child(3n+1) {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 255, 255, 0.1));
}

.css-carousel-container .project-card:nth-child(3n+2) {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(144, 0, 255, 0.1));
}

.css-carousel-container .project-card:nth-child(3n+3) {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(255, 144, 0, 0.1));
}

.css-carousel-container .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
    z-index: 10;
}

.css-carousel-container .project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(5, 10, 24, 0.9), transparent);
}

.css-carousel-container .project-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--neon-cyan);
}

.css-carousel-container .project-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.css-carousel-container .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.css-carousel-container .tech-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--neon-cyan);
}

/* Edge fade effect for better aesthetics */
.css-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(90deg, 
        rgba(5, 10, 24, 0.9) 0%, 
        rgba(5, 10, 24, 0) 5%, 
        rgba(5, 10, 24, 0) 95%, 
        rgba(5, 10, 24, 0.9) 100%);
}

/* Cyberpunk scan lines effect */
.css-carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%, 
        rgba(0, 255, 255, 0.03) 50.5%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .css-carousel-container {
        padding: 15px 0;
    }
    
    .css-carousel-container .project-card {
        width: 240px;
        height: 240px;
    }
    
    .css-carousel-container .project-title {
        font-size: 1.1rem;
    }
    
    .css-carousel-container .project-description {
        font-size: 0.7rem;
    }
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
} 