/* Custom Variables */
:root {
    --primary-color: #5c6bc0;
    --secondary-color: #7986cb;
    --light-color: #e8eaf6;
    --dark-color: #1a237e;
    --text-color: #424242;
    --section-padding: 2rem;
    --transition: all 0.3s ease;
    --font-family: 'Poppins', sans-serif; /* Default font, can be switched */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --blur-effect: blur(8px);
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #573b76;
    background-image: 
        linear-gradient(135deg, #573b76 0%, #9c77b8 50%, #83508c 100%);
    background-size: 200% 200%;
    background-attachment: fixed;
    transition: font-family 0.3s ease;
    position: relative;
    overflow-x: hidden;
    animation: gradientAnimation 15s ease infinite;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

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

.nebula-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    filter: blur(5px);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 0 5px rgba(92, 107, 192, 0.7);
}

p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--dark-color);
}

section {
    padding: var(--section-padding) 0;
    position: relative;
    margin-bottom: 1rem;
}

/* Glassmorphism Card Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-radius: 10px;
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.btn {
    display: inline-block;
    background: rgba(138, 180, 255, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 600;
}

.btn:hover {
    background: rgba(138, 180, 255, 0.5);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Header Styles */
/* Header Styles */
header {
    background: rgba(87, 59, 118, 0.8);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 1rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo img {
    height: 90px;
    width: auto;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .logo {
        justify-content: flex-start;
        padding-left: 60px; /* Make space for the hamburger menu */
    }
    
    .logo img {
        height: 30px;
    }
    
    nav {
        padding: 1rem 0;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    transition: var(--transition);
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 600;
    position: relative;
    padding-bottom: 0.25rem;
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #8ab4ff;
    box-shadow: 0 0 8px rgba(138, 180, 255, 0.8);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
    color: white;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 73px);
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 50%;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: white;
    position: relative;
    left: 5%;
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 80%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    border-radius: 20px;
}

.hero-image:hover {
    transform: translateY(-52%) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-image:hover img {
    filter: none;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 0 10px rgba(92, 107, 192, 0.7);
}

.hero h3 {
    color: white;
    text-shadow: 0 0 8px rgba(92, 107, 192, 0.7);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-subtitle {
    color: #8ab4ff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-right: 1rem;
    color: white;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.social-links a:hover {
    background-color: #8ab4ff;
    color: #573b76;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: white;
    text-shadow: 0 0 8px rgba(92, 107, 192, 0.7);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #8ab4ff;
    box-shadow: 0 0 8px rgba(138, 180, 255, 0.8);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.about-text {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: white;
}

.skills {
    flex: 1;
}

.skill-category {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.skill-category h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: white;
    text-shadow: 0 0 5px rgba(92, 107, 192, 0.7);
}

.skill-category h4 i {
    margin-right: 0.5rem;
    color: #8e99f3;
    text-shadow: 0 0 8px rgba(142, 153, 243, 0.5);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-item:hover {
    background: rgba(92, 107, 192, 0.7);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Experience Section */
.experience {
    background: rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, #8e99f3, #5c6bc0);
    box-shadow: 0 0 8px rgba(142, 153, 243, 0.8);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 4px solid #8e99f3;
    box-shadow: 0 0 8px rgba(142, 153, 243, 0.8);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: white;
}

.timeline-date {
    font-weight: 600;
    color: #8e99f3;
    text-shadow: 0 0 5px rgba(142, 153, 243, 0.8);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 0 5px rgba(92, 107, 192, 0.7);
}

.timeline-company {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.timeline-description ul {
    padding-left: 1.5rem;
}

.timeline-description li {
    margin-bottom: 0.5rem;
}

/* Education Section */
.education {
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.education-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.education-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: white;
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.education-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.education-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(92, 107, 192, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 1rem;
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(92, 107, 192, 0.5);
}

.education-card-date {
    color: #8e99f3;
    text-shadow: 0 0 5px rgba(142, 153, 243, 0.8);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-card h3 {
    color: white;
    text-shadow: 0 0 5px rgba(92, 107, 192, 0.7);
}

.education-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* Hobbies Section */
.hobbies-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.hobby-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-radius: 16px;
    padding: 2rem;
    width: 250px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: white;
    transition: var(--transition);
}

.hobby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.hobby-icon {
    font-size: 3rem;
    color: #8e99f3;
    text-shadow: 0 0 10px rgba(142, 153, 243, 0.8);
    margin-bottom: 1rem;
}

.hobby-card h3 {
    color: white;
    text-shadow: 0 0 5px rgba(92, 107, 192, 0.7);
}

/* Contact Section */
.contact {
    background: rgba(0, 0, 0, 0.1);
    position: relative;
}

.contact-container {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(92, 107, 192, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(92, 107, 192, 0.5);
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: rgba(92, 107, 192, 0.7);
    color: white;
    box-shadow: 0 0 20px rgba(92, 107, 192, 0.7);
}

.contact-text h4 {
    margin-bottom: 0.25rem;
    color: white;
    text-shadow: 0 0 5px rgba(92, 107, 192, 0.7);
}

.contact-text a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.contact-text a:hover {
    color: #8e99f3;
    text-shadow: 0 0 5px rgba(142, 153, 243, 0.8);
}

.contact-form {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    font-family: inherit;
    color: white;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: rgba(142, 153, 243, 0.8);
    box-shadow: 0 0 5px rgba(142, 153, 243, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background: rgba(26, 35, 126, 0.5);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    color: white;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social {
    margin-bottom: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: rgba(92, 107, 192, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(92, 107, 192, 0.5);
}

.footer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Font Switcher */
.font-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(74, 50, 100, 0.7);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    z-index: 99;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.font-option {
    margin: 0 0.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: var(--transition);
}

.font-option.active {
    color: white;
    font-weight: 700;
    background: rgba(138, 180, 255, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

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

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        width: 90%;
        text-align: center;
        padding: 2rem;
        margin: 2rem auto;
        left: 0;
    }

    .hero-image {
        position: relative;
        width: 70%;
        height: 300px;
        margin: 0 auto 2rem;
        right: 0;
        top: 0;
        transform: none;
        border-radius: 16px;
    }

    .hero {
        flex-direction: column;
        padding-top: 2rem;
    }

    .about-content, .contact-container {
        flex-direction: column;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        left: 0 !important;
    }

    .timeline-item::after {
        left: 20px !important;
        right: auto !important;
    }

    .education-cards {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: rgba(87, 59, 118, 0.95);
        backdrop-filter: var(--blur-effect);
        -webkit-backdrop-filter: var(--blur-effect);
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        transition: all 0.4s ease;
        z-index: 99;
        padding-right: 2rem;
    }
    
    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        color: white;
        font-size: 1.5rem;
        font-weight: 500;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 100;
    }
    
    .mobile-menu i {
        font-size: 2rem;
        transition: all 0.3s ease;
    }

    /* Hamburger Menu Animation */
    .mobile-menu i.fa-times {
        transform: rotate(90deg);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }
    
    .font-switcher {
        bottom: 10px;
        right: 10px;
        padding: 0.4rem 0.8rem;
    }
    
    .font-option {
        font-size: 0.9rem;
    }

    .hero-image {
        width: 80%;
        height: 250px;
        object-fit: cover;
        margin-top: 2rem;
    }

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

    .about-text, .skill-category, .education-card, .hobby-card {
        margin-bottom: 1.5rem;
    }

    .section-title {
        margin-bottom: 2rem;
        margin-top: 2rem;
    }
    
    /* Ensure section titles have enough space */
    #about, #experience, #education, #hobbies, #contact {
        scroll-margin-top: 80px;
    }
}
    
    .font-switcher {
        bottom: 10px;
        right: 10px;
        padding: 0.4rem 0.8rem;
    }
    
    .font-option {
        font-size: 0.9rem;
    }

    .hero-image {
        width: 40%;
        height: 720px;
        object-fit: cover;
    }

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

    .about-text, .skill-category, .education-card, .hobby-card {
        margin-bottom: 1.5rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }
}
