/* CSS Variables for consistent theming */
:root {
    --gold: #D4AF37;
    --gold-light: #F4E4A6;
    --gold-dark: #B8860B;
    --black: #0A0A0A;
    --black-light: #1A1A1A;
    --black-lighter: #2A2A2A;
    --white: #F5F5F5;
    --gray: #8A8A8D;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--gold);
}

/* Luxury Background Animation */
.luxury-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 100%);
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gold-shine {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, transparent 30%, rgba(212, 175, 55, 0.03) 50%, transparent 70%);
    animation: shine 8s infinite linear;
    z-index: -1;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Navigation Styles */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.4s ease;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Download CV Button in Navigation */
.btn-nav {
    padding: 0.7rem 1.5rem;
    background: var(--gold);
    color: var(--black);
    border-radius: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--gold);
}

.btn-nav:hover {
    background: transparent;
    color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--gold);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
    position: relative;
}

.hero h1 .gold-text {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--gold);
}

/* Tagline and Research Interests */
.tagline-container {
    margin-bottom: 2.5rem;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray);
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.research-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.research-item {
    background: rgba(212, 175, 55, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 2px;
    font-size: 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--gold-light);
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.research-item:nth-child(2) {
    animation-delay: 1.2s;
}

.research-item:nth-child(3) {
    animation-delay: 1.4s;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.6s forwards;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 2px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-gold {
    background: var(--gold);
    color: var(--black);
    border: 1px solid var(--gold);
}

.btn-gold:hover {
    background: transparent;
    color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

/* Hero Image with Circular Profile */
.hero-image {
    position: absolute;
    right: 5%;
    bottom: 0;
    width: 40%;
    max-width: 500px;
    opacity: 0;
    animation: fadeInRight 1.5s ease 1.8s forwards;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    position: relative;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-image-container:hover img {
    transform: scale(1.05);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
}

/* Section Styling */
section {
    padding: 8rem 5%;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--gold);
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--gray);
}

.about-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.about-image img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    position: relative;
    z-index: 2;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 3s infinite ease-in-out;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background: rgba(26, 26, 26, 0.7);
    border-radius: 5px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.7s ease;
}

.skill-category:hover::before {
    left: 100%;
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-category h3 i {
    color: var(--gold);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-item {
    background: rgba(212, 175, 55, 0.1);
    padding: 0.7rem 1.2rem;
    border-radius: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-item:hover::before {
    left: 100%;
}

.skill-item:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: scale(1.05);
    border-color: rgba(212, 175, 55, 0.4);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: rgba(26, 26, 26, 0.7);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 30%, rgba(212, 175, 55, 0.03) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.project-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    filter: grayscale(0.3) brightness(0.8);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
    filter: grayscale(0) brightness(0.9);
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.8rem;
}

.project-tech span {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-light);
    padding: 0.4rem 1rem;
    border-radius: 2px;
    font-size: 0.8rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.project-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.project-links a:hover {
    color: var(--gold);
}

.project-links a:hover::after {
    width: 100%;
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 5rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-item i {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover i {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.contact-form {
    flex: 1;
    background: rgba(26, 26, 26, 0.7);
    padding: 2.5rem;
    border-radius: 5px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 500;
    color: var(--gold-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(10, 10, 10, 0.9);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: rgba(10, 10, 10, 0.9);
    padding: 4rem 5% 2rem;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.footer-text {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-text span {
    color: var(--gold);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    background: rgba(212, 175, 55, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 70%;
    left: 80%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 85%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 80%;
    left: 15%;
    animation-delay: 6s;
}

.floating-element:nth-child(5) {
    width: 90px;
    height: 90px;
    top: 20%;
    left: 70%;
    animation-delay: 8s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .hero-image {
        position: relative;
        right: 0;
        margin-top: 3rem;
        width: 70%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(212, 175, 55, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .research-interests {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .btn {
        padding: 0.9rem 2rem;
    }
    
    .about-image img {
        width: 280px;
        height: 280px;
    }
    
    .about-image::before {
        width: 310px;
        height: 310px;
    }
    
    .profile-image-container {
        width: 280px;
        height: 280px;
    }
    
    .hero-image::before {
        width: 310px;
        height: 310px;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
}

/* Mobile optimization */
@media (max-width: 768px) {
    .about-image {
        display: none;
    }
    
    .hero-image {
        display: flex !important;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-text {
        width: 100%;
    }
}

/* Desktop layout */
@media (min-width: 769px) {
    .about-image {
        display: block;
    }
    
    .hero-image {
        display: flex;
    }
    
    .about-content {
        flex-direction: row;
        text-align: left;
    }
}