* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #0a0e27;
    --color-dark: #0f1629;
    --color-primary: #a855f7;
    --color-secondary: #ec4899;
    --color-accent: #06b6d4;
    --color-text: #e0e7ff;
    --color-border: #2d1b69;
    --glow-primary: 0 0 20px rgba(168, 85, 247, 0.5);
    --glow-secondary: 0 0 30px rgba(236, 72, 153, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', monospace;
    background: var(--color-black);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Matrix Canvas Background */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--color-primary);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: var(--glow-primary);
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--color-secondary);
    text-shadow: var(--glow-secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary);
    text-shadow: var(--glow-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(10, 14, 39, 0) 50%, rgba(236, 72, 153, 0.1) 100%);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--color-primary);
    text-shadow: var(--glow-primary);
    line-height: 1.1;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-animation 0.3s ease-in-out infinite;
    color: var(--color-secondary);
    z-index: -1;
    text-shadow: -2px 0 var(--glow-secondary);
}

.glitch::after {
    animation: glitch-animation2 0.3s ease-in-out infinite;
    color: var(--color-accent);
    z-index: -2;
    text-shadow: 2px 0 rgba(6, 182, 212, 0.5);
}

@keyframes glitch-animation {
    0% { clip-path: inset(0 0 0 0); }
    20% { clip-path: inset(0 0 65% 0); }
    40% { clip-path: inset(28% 0 0 0); }
    60% { clip-path: inset(77% 0 0 0); }
    80% { clip-path: inset(45% 0 20% 0); }
    100% { clip-path: inset(0 0 0 0); }
}

@keyframes glitch-animation2 {
    0% { clip-path: inset(0 0 0 0); }
    20% { clip-path: inset(8% 0 0 0); }
    40% { clip-path: inset(0 0 50% 0); }
    60% { clip-path: inset(20% 0 10% 0); }
    80% { clip-path: inset(50% 0 40% 0); }
    100% { clip-path: inset(0 0 0 0); }
}

.subtitle {
    font-size: 1.3rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-black);
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    background: var(--color-secondary);
    box-shadow: var(--glow-secondary);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-black);
    box-shadow: var(--glow-primary);
    transform: translateY(-3px);
}

/* Hero Visual - 3D Cube */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    min-height: 500px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 10s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(168, 85, 247, 0.1);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-primary);
    opacity: 0.8;
    box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.2), 0 0 30px rgba(168, 85, 247, 0.3);
}

.cube-face.front { transform: translateZ(100px); }
.cube-face.back { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotate-cube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 3rem;
    text-align: center;
    text-shadow: var(--glow-primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    box-shadow: var(--glow-primary);
}

/* About Section */
.about {
    background: linear-gradient(180deg, rgba(10, 14, 39, 0) 0%, rgba(45, 27, 105, 0.1) 50%, rgba(10, 14, 39, 0) 100%);
    border-top: 2px solid var(--color-border);
    border-bottom: 2px solid var(--color-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
    border: 2px solid var(--color-border);
    padding: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--color-text);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-tag:hover {
    background: var(--color-primary);
    color: var(--color-black);
    box-shadow: var(--glow-primary);
    transform: scale(1.05);
}

.about-stats {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.05);
    transition: all 0.3s ease;
}

.stat:hover {
    border-color: var(--color-primary);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: var(--glow-primary);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--color-secondary);
    font-weight: bold;
    text-shadow: var(--glow-secondary);
}

.stat-label {
    color: var(--color-accent);
    margin-top: 0.5rem;
}

/* Projects Section */
.projects {
    border-top: 2px solid var(--color-border);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    border: 2px solid var(--color-border);
    padding: 2rem;
}

.project-card {
    background: rgba(45, 27, 105, 0.2);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    border-color: var(--color-primary);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: var(--glow-primary);
    transform: translateY(-10px);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
}

.project-placeholder {
    font-size: 1.5rem;
    color: var(--color-primary);
    opacity: 0.7;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.project-info p {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    background: rgba(168, 85, 247, 0.2);
    color: var(--color-accent);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid var(--color-accent);
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, rgba(10, 14, 39, 0) 0%, rgba(45, 27, 105, 0.15) 100%);
    border-top: 1px solid var(--color-border);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
    border: 2px solid var(--color-border);
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    background: rgba(45, 27, 105, 0.3);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(224, 231, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(45, 27, 105, 0.5);
    border-color: var(--color-primary);
    box-shadow: var(--glow-primary);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 1rem;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.social-btn:hover {
    background: var(--color-primary);
    color: var(--color-black);
    box-shadow: var(--glow-primary);
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: rgba(10, 14, 39, 0.9);
    border-top: 2px solid var(--color-primary);
    padding: 2rem;
    text-align: center;
    color: var(--color-text);
    opacity: 0.8;
}

/* Career / Timeline Section */
.career {
    background: linear-gradient(180deg, rgba(10, 14, 39, 0) 0%, rgba(45, 27, 105, 0.1) 50%, rgba(10, 14, 39, 0) 100%);
    border-top: 2px solid var(--color-border);
    border-bottom: 2px solid var(--color-border);
}

.timeline {
    position: relative;
    padding: 2rem;
    border: 2px solid var(--color-border);
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 3rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    box-shadow: var(--glow-primary);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    width: 16px;
    height: 16px;
    min-width: 16px;
    background: var(--color-primary);
    border-radius: 50%;
    margin-top: 0.4rem;
    box-shadow: var(--glow-primary);
    position: relative;
    z-index: 1;
}

.timeline-content {
    background: rgba(45, 27, 105, 0.15);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    flex: 1;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--color-primary);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: var(--glow-primary);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.timeline-header h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.timeline-date {
    color: var(--color-accent);
    font-size: 0.85rem;
    white-space: nowrap;
    border: 1px solid var(--color-accent);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
}

.timeline-company {
    color: var(--color-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-bullets {
    list-style: none;
    margin-bottom: 1.2rem;
}

.timeline-bullets li {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.4rem;
}

.timeline-bullets li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tags span {
    background: rgba(168, 85, 247, 0.2);
    color: var(--color-accent);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 1.5rem;
    }

    .timeline-header {
        flex-direction: column;
    }

    .timeline-date {
        align-self: flex-start;
    }

    .nav-menu {
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 2rem;
    }
}
