:root {
    --primary-font: 'Rajdhani', sans-serif;
    --heading-font: 'Orbitron', sans-serif;
    --text-color: #c0c0c0;
    --glow-color: #00f2ff;
    --bg-color: #02040a;
    --wire-color: rgba(0, 242, 255, 0.3);
    --wire-highlight: rgba(0, 242, 255, 0.8);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--primary-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('https://images.unsplash.com/photo-1653064535338-31974b73b573?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    animation: slow-pan 60s linear infinite alternate;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.wireframe {
    border: 1px solid var(--wire-color);
    background-color: rgba(2, 4, 10, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.05);
    transition: border-color 0.5s, box-shadow 0.5s;
}

.wireframe:hover {
    border-color: var(--wire-highlight);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.2);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    animation: fadeInDown 1s ease-out;
}

.logo {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--glow-color);
    text-shadow: 0 0 12px var(--glow-color);
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2.5rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
}

nav a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--glow-color);
}

main {
    text-align: center;
}

#hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

#hero h1 {
    font-family: var(--heading-font);
    font-size: 6rem;
    margin: 0;
    color: #fff;
    text-shadow: 0 0 20px var(--glow-color), 0 0 40px rgba(0, 242, 255, 0.5);
}

.subtitle {
    font-size: 1.3rem;
    letter-spacing: 5px;
    color: var(--text-color);
    text-transform: uppercase;
}

.tetrahedron-container {
    perspective: 1000px;
    width: 120px;
    height: 120px;
    margin-right: 3rem;
}

.tetrahedron {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 25s linear infinite;
}

.face {
    position: absolute;
    border-style: solid;
    opacity: 0.6;
    border-color: transparent;
    border-bottom-color: var(--wire-highlight);
}

.f1, .f2, .f3, .f4 {
    border-width: 0 60px 104px 60px;
    border-bottom-color: var(--wire-color);
}

.f1 { transform: rotateX(19.47deg) rotateY(0deg)   translateZ(30px); }
.f2 { transform: rotateX(19.47deg) rotateY(120deg) translateZ(30px); }
.f3 { transform: rotateX(19.47deg) rotateY(240deg) translateZ(30px); }
.f4 { transform: rotateX(-19.47deg) rotateY(180deg) translateZ(30px) rotateZ(180deg); }

.data-section {
    padding: 2.5rem 3rem;
    margin-top: 3rem;
    text-align: left;
}

.data-section h2 {
    font-family: var(--heading-font);
    color: var(--glow-color);
    font-size: 1.8rem;
    margin: 0 0 2rem 0;
    letter-spacing: 2px;
}

.data-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 80ch;
}

.job {
    margin-bottom: 2.5rem;
    text-align: left;
}

.job:last-child {
    margin-bottom: 0;
}

.job h3 {
    font-family: var(--heading-font);
    color: var(--glow-color);
    font-size: 1.3rem;
    margin: 0 0 0.25rem 0;
}

.job .dates {
    color: var(--text-color);
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.project-links {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.wireframe-button {
    border: 1px solid var(--wire-color);
    padding: 0.8rem 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.wireframe-button:hover {
    background-color: var(--wire-color);
    color: #fff;
    box-shadow: 0 0 15px var(--wire-color);
}

.wireframe-button i {
    font-size: 1.5rem;
}

.publications {
    margin-top: 2rem;
}

.publications h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    color: var(--glow-color);
}

.publications p {
    margin: 0 0 0.5rem 0;
}

.publications a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--wire-color);
    transition: color 0.3s, border-bottom-color 0.3s;
}

.publications a:hover {
    color: var(--glow-color);
    border-bottom-color: var(--glow-color);
}

footer {
    padding: 1.5rem 2rem;
    margin-top: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.social-links a:hover {
    color: var(--glow-color);
    text-shadow: 0 0 8px var(--glow-color);
}

.contact-info {
    font-size: 1rem;
    letter-spacing: 1px;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.contact-info a:hover {
    color: var(--glow-color);
    text-shadow: 0 0 8px var(--glow-color);
}

.contact-info span {
    margin: 0 0.5rem;
    color: var(--glow-color);
}

footer p {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 2px;
}

/* Animations */
@keyframes spin {
    from { transform: rotateY(0deg) rotateX(10deg) rotateZ(0deg); }
    to { transform: rotateY(360deg) rotateX(10deg) rotateZ(360deg); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slow-pan {
    from { background-position: 0% 0%; }
    to { background-position: 100% 100%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    #hero h1 { font-size: 4rem; }
    .hero-title { flex-direction: column-reverse; }
    .tetrahedron-container { margin-right: 0; margin-bottom: 2rem; }
    header { flex-direction: column; gap: 1rem; }
}