/* Global Styles */
:root {
    --primary-color: #1e88e5;
    --secondary-color: #64b5f6;
    --text-color: #ffffff;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --white: #ffffff;
    --font-size-large: 1.25rem;
    --font-size-xlarge: 1.5rem;
    --font-size-xxlarge: 2rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, 
        var(--dark-bg) 0%,
        var(--primary-color) 25%,
        var(--secondary-color) 50%,
        var(--primary-color) 75%,
        var(--dark-bg) 100%
    );
    background-size: 400% 400%;
    background-attachment: fixed;
    transition: background-position 0.5s ease;
    font-size: var(--font-size-large);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Sections */
.section {
    padding: 3rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent;
}

.container {
    max-width: 1400px;
    padding: 2rem 3rem;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    background: rgba(18, 18, 18, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* Home Section */
#home {
    padding-top: 8rem;
}

.home-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
}

.home-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: radial-gradient(circle at center, rgba(30, 136, 229, 0.1) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.5;
}

.profile-image {
    position: relative;
    width: 500px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 136, 229, 0.2), rgba(100, 181, 246, 0.2));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image:hover::before {
    opacity: 1;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.profile-image:hover img {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(30, 136, 229, 0.3);
}

.home-text {
    flex: 1;
}

.home-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.description {
    margin-bottom: 2rem;
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Section Headers */
h2 {
    font-size: var(--font-size-xxlarge);
    color: var(--white);
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h3 {
    font-size: var(--font-size-xlarge);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .profile-image {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        background-color: rgba(18, 18, 18, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .hamburger {
        display: flex;
    }

    .home-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .home-content::before {
        top: -30px;
        left: -30px;
        right: -30px;
        bottom: -30px;
    }

    .profile-image {
        width: 250px;
        height: 250px;
    }

    .social-links {
        justify-content: center;
    }

    .container {
        padding: 1.5rem;
    }

    h2 {
        font-size: calc(var(--font-size-xxlarge) * 0.9);
    }

    h3 {
        font-size: calc(var(--font-size-xlarge) * 0.9);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 1s ease-out;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 1001;
}

/* Stats Section */
.stats {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: var(--font-size-large);
    color: var(--white);
}

/* Skills Section */
.skills {
    margin-top: 2rem;
    gap: 1.5rem;
}

.skill-category {
    margin-bottom: 1rem;
}

.skill-category h4 {
    font-size: var(--font-size-xlarge);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-category li {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: var(--font-size-large);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.skill-category li:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Education Section */
.education-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.education-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.education-item h3 {
    font-size: var(--font-size-xlarge);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.company {
    font-size: var(--font-size-large);
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.duration {
    font-size: var(--font-size-large);
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.score {
    color: var(--white);
    font-weight: 500;
}

/* Education Section Styling */
.education-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.education-title {
    flex: 1;
    text-align: left;
}

.institution-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    transition: all 0.3s ease;
    order: 2; /* Move logo to the end */
}

.education-item:hover .institution-logo {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.education-title h3 {
    margin-bottom: 0.25rem;
}

.education-title .institution {
    margin-bottom: 0.25rem;
}

/* Experience Section */
.project-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-item h3 {
    font-size: var(--font-size-xlarge);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-duration {
    font-size: var(--font-size-large);
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.project-details {
    list-style-type: none;
    padding-left: 1.25rem;
}

.project-details li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: var(--font-size-large);
    line-height: 1.6;
}

.project-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Contact Section */
.contact-intro {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: var(--font-size-large);
    line-height: 1.8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--font-size-large);
    padding: 0.75rem 1.25rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
}

footer p {
    color: var(--white);
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .skill-category ul {
        justify-content: center;
    }

    .contact-info {
        align-items: center;
    }

    .experience-item, .project-item, .education-item {
        padding: 1.25rem;
    }

    .education-header {
        gap: 1rem;
    }

    .institution-logo {
        width: 50px;
        height: 50px;
    }
}

/* About Section Styling */
.about-content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.about-image {
    position: relative;
    width: 300px;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 136, 229, 0.2), rgba(100, 181, 246, 0.2));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image:hover::before {
    opacity: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(30, 136, 229, 0.3);
}

.about-text-content {
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .about-content {
        gap: 3rem;
    }
    
    .about-image {
        width: 350px;
        height: 450px;
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .about-image {
        width: 300px;
        height: 400px;
    }

    .about-text-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .about-image {
        width: 250px;
        height: 350px;
    }
}

/* Experience Section Styling */
.experience-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.experience-item:hover::before {
    opacity: 1;
}

.experience-item h3 {
    color: var(--primary-color);
    font-size: var(--font-size-xlarge);
    margin-bottom: 0.75rem;
}

.company {
    font-size: var(--font-size-large);
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.duration {
    font-size: var(--font-size-large);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.experience-details {
    list-style-type: none;
    padding-left: 1rem;
}

.experience-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: var(--font-size-large);
    line-height: 1.6;
}

.experience-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .experience-item {
        padding: 1.5rem;
    }

    .experience-details li {
        padding-left: 1.25rem;
        margin-bottom: 0.5rem;
    }
}

.resume-button-container {
    text-align: center;
    margin-top: 2rem;
}

.resume-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.resume-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.publications-content {
    margin-top: 2rem;
}

.publication-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.publication-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.publication-item h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    position: relative;
    padding-left: 1.5rem;
}

.publication-item h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.publication-venue {
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.publication-year {
    color: var(--white);
    opacity: 0.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.publication-description {
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    padding-left: 1.5rem;
}

.publication-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding-left: 1.5rem;
}

.publication-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.publication-link i {
    margin-left: 0.5rem;
    font-size: 0.9em;
}

.project-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.project-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.project-link i {
    margin-left: 0.5rem;
    font-size: 0.9em;
} 