/* style.css */
:root {
    --bg-color: #050508;
    --grid-color: rgba(0, 243, 255, 0.05);
    --neon-cyan: #00f3ff;
    --neon-pink: #ff00ea;
    --text-main: #e0e0e0;
    --text-muted: #8c8c9e;
    --font-headers: 'Rajdhani', sans-serif;
    --font-code: 'Share Tech Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-headers);
    line-height: 1.6;
    font-size: 18px;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 30px 30px;
    overflow-x: hidden;
}

/* --- NAVIGATION & HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(5, 5, 8, 0.9);
    border-bottom: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-logo {
    width: 50px;
    height: 50px;
    display: block;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    border: 2px dashed var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-code);
    font-size: 12px;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

nav a.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

nav a:hover::after {
    width: 100%;
}

/* --- MAIN CONTENT --- */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

h1,
h2,
h3 {
    color: var(--neon-cyan);
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 48px;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

h2 {
    font-size: 32px;
    margin-top: 50px;
    border-left: 4px solid var(--neon-cyan);
    padding-left: 15px;
}

h3 {
    font-size: 24px;
    margin-top: 30px;
    color: #fff;
}

p,
ul {
    margin-bottom: 20px;
    font-size: 20px;
}

ul {
    padding-left: 25px;
}

li {
    margin-bottom: 10px;
}

.highlight {
    color: var(--neon-cyan);
    font-family: var(--font-code);
}

.code-block {
    background: rgba(0, 20, 30, 0.8);
    border: 1px solid var(--neon-cyan);
    padding: 20px;
    border-radius: 4px;
    font-family: var(--font-code);
    color: var(--text-main);
    margin: 20px 0;
    overflow-x: auto;
    box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.1);
    font-size: 16px;
}

.math-box {
    background: rgba(0, 20, 30, 0.5);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 15px;
    border-radius: 4px;
    font-family: var(--font-code);
    text-align: center;
    margin: 20px 0;
    font-size: 22px;
}

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid #333;
    font-family: var(--font-code);
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 50px;
}

/* --- CONTACT FORM STYLING --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-code);
    color: var(--neon-pink);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    background: rgba(0, 10, 15, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.4);
    border-radius: 2px;
    padding: 12px 15px;
    color: var(--text-main);
    font-family: var(--font-code);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2), inset 0 0 10px rgba(0, 243, 255, 0.1);
    background: rgba(0, 20, 30, 0.8);
}

/* --- BUTTON STYLING (Unified Tron Theme) --- */
.btn-neon {
    display: inline-block;
    padding: 12px 24px;
    /* Matched to the input fields */
    background: rgba(0, 10, 15, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.5);
    border-radius: 2px;
    color: var(--neon-cyan);
    font-family: var(--font-code);
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    margin-top: 20px;
    cursor: pointer;
}

/* 1. The Container (Groups them and aligns them horizontally) */
.brand-link {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Spacing between the logo and the text */
    text-decoration: none;
    /* Removes any default link underlines */
    cursor: pointer;
}

/* 2. Base State: The Logo */
.elyasia-logo {
    width: 50px;
    /* Adjust if needed */
    height: auto;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

/* 3. Base State: The Text */
.brand-text {
    color: #ffffff;
    font-size: 28px;
    /* Adjust to match your header */
    font-family: var(--font-header), 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

/* =========================================
   THE SYNCHRONIZED HOVER TRIGGERS
   ========================================= */

/* When hovering anywhere on the link, spin and brighten the logo */
.brand-link:hover .elyasia-logo {
    transform: scale(1.15) rotate(90deg);
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(0, 243, 255, 0.4));
}

/* When hovering anywhere on the link, ignite the text glow */
.brand-link:hover .brand-text {
    color: #ffffff;
    /* Uses a layered cyan text-shadow for a true neon effect */
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.8), 0 0 20px rgba(0, 243, 255, 0.4);
}

/* Hover and Focus Glow */
.btn-neon:hover,
.btn-neon:focus {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4), inset 0 0 10px rgba(0, 243, 255, 0.2);
    outline: none;
}

/* Mechanical "Click" Effect */
.btn-neon:active {
    transform: translateY(2px);
    box-shadow: 0 0 5px rgba(0, 243, 255, 0.4), inset 0 0 5px rgba(0, 243, 255, 0.2);
    background: rgba(0, 10, 15, 0.8);
}

/* --- PROFILE IMAGE STYLING --- */
.profile-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    /* This is the magic property that prevents stretching */
    object-position: center;
    /* Ensures the subject's face stays in the middle */
    border: 1px solid rgba(0, 243, 255, 0.5);
    /* Subtle cyan border */
    margin-bottom: 15px;
    display: block;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

/* Optional: Adds a subtle sci-fi terminal scanline effect when you hover over the image */
.profile-photo:hover {
    filter: contrast(110%) brightness(1.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    transition: all 0.3s ease;
}

/* --- ACADEMIC CITATIONS --- */
.citation {
    color: var(--neon-pink);
    text-decoration: none;
    font-family: var(--font-code);
    transition: all 0.2s ease;
}

.citation:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}