/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.8;
    color: #e0e0e0;
    background-color: #0a0a0a;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

/* Ambient Glow Background */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.glow-1 {
    width: 600px;
    height: 600px;
    right: -100px;
    top: 10%;
    background: radial-gradient(ellipse at center,
    rgba(255, 180, 50, 0.4) 0%,
    rgba(255, 140, 0, 0.2) 40%,
    transparent 70%);
    animation: float1 20s ease-in-out infinite;
}

.glow-2 {
    width: 400px;
    height: 400px;
    right: 50px;
    top: 25%;
    background: radial-gradient(ellipse at center,
    rgba(255, 220, 100, 0.3) 0%,
    rgba(255, 193, 7, 0.15) 50%,
    transparent 70%);
    animation: float2 25s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, 20px) scale(1.05);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, -30px) scale(0.95);
    }
}

/* Gradient Text Effect */
.gradient-text {
    background-image: linear-gradient(30deg, #ff8c00, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

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

/* Header */
header {
    padding: 40px 0 20px 0;
    border-bottom: 1px solid rgba(255, 140, 0, 0.15);
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
    position: relative;
    z-index: 10;
}

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

.site-title {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 15px;
    display: inline-block;
}

nav {
    font-size: 13px;
    display: inline-block;
    margin-left: 40px;
}

nav a {
    color: #777;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(30deg, #ff8c00, #ffc107);
    transition: width 0.3s ease;
}

nav a:hover {
    color: #ffc107;
}

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

.nav-separator {
    color: #333;
    margin: 0 8px;
}

/* Main Content */
main {
    padding-bottom: 80px;
    animation: fadeIn 1.5s ease;
    position: relative;
    z-index: 10;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

section {
    margin-bottom: 60px;
    opacity: 0;
    animation: slideUp 1s ease forwards;
    background: rgba(10, 10, 10, 0.6);
    padding: 30px;
    border-radius: 4px;
    border: 1px solid rgba(255, 140, 0, 0.08);
}

section:nth-child(1) { animation-delay: 0.2s; }
section:nth-child(2) { animation-delay: 0.4s; }
section:nth-child(3) { animation-delay: 0.6s; }
section:nth-child(4) { animation-delay: 0.8s; }

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

h2 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 140, 0, 0.12);
    padding-bottom: 8px;
    color: #fff;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 1px;
    background: linear-gradient(30deg, #ff8c00, #ffc107);
    opacity: 0.6;
}

h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffc107;
}

p {
    margin-bottom: 15px;
    color: #a0a0a0;
}

a {
    color: #ff8c00;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffc107;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text {
    padding-right: 20px;
}

.about-text p.links {
    margin-top: 20px;
}

.about-text p.links a {
    margin-right: 15px;
    color: #ff8c00;
    transition: all 0.3s ease;
}

.about-text p.links a:hover {
    color: #ffc107;
}

.profile-photo {
    text-align: center;
}

.profile-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: linear-gradient(#0a0a0a, #0a0a0a) padding-box,
    linear-gradient(30deg, #ff8c00, #ffc107) border-box;
    transition: all 0.5s ease;
}

.profile-photo img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(255, 140, 0, 0.25);
}

/* Research Interests */
.interests-section ul {
    list-style: none;
    padding-left: 0;
}

.interests-section li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.interests-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #ff8c00;
    transition: all 0.3s ease;
}

.interests-section li:hover {
    padding-left: 25px;
}

.interests-section li:hover::before {
    color: #ffc107;
}

.interests-section li strong {
    font-weight: bold;
    color: #d0d0d0;
}

/* Projects Section */
.project-item {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 140, 0, 0.08);
    transition: all 0.3s ease;
}

.project-item:hover {
    padding-left: 15px;
    border-left: 2px solid #ff8c00;
}

.project-item:last-child {
    border-bottom: none;
}

.project-meta {
    font-size: 13px;
    color: #555;
    font-style: italic;
    margin-bottom: 10px;
}

.project-link {
    font-size: 13px;
    color: #ff8c00;
    display: inline-block;
    margin-top: 5px;
    position: relative;
}

.project-link::after {
    content: ' →';
    transition: transform 0.3s ease;
    display: inline-block;
}

.project-link:hover::after {
    transform: translateX(5px);
}

/* Contact Section */
.contact-section p {
    margin-bottom: 12px;
}

.contact-section strong {
    color: #ffc107;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 140, 0, 0.1);
    padding: 30px 0;
    margin-top: 80px;
    position: relative;
    z-index: 10;
}

footer p {
    font-size: 12px;
    color: #444;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    header {
        padding: 30px 0 15px 0;
    }

    nav {
        display: block;
        margin-left: 0;
        margin-top: 10px;
    }

    section {
        padding: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text {
        padding-right: 0;
    }

    .profile-photo img {
        width: 150px;
        height: 150px;
    }

    .glow-1 {
        width: 400px;
        height: 400px;
        right: -150px;
    }

    .glow-2 {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .site-title {
        font-size: 20px;
    }

    nav {
        font-size: 12px;
    }

    h2 {
        font-size: 15px;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}