:root {
    --primary-color: #4b2e83;
    --secondary-color: #f0e6f7;
    --accent-color: #d4af37;
    --text-color: #2c2c2c;
    --light-text: #555;
    --white: #fff;
    --black: #000;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(270deg, #f0e6f7, #d9c9f7, #f0e6f7, #d9c9f7);
    background-size: 800% 800%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 100%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 0%;
    }
    100% {
        background-position: 0% 50%;
    }
}

h1, h2, h3, h4 {
    font-family: 'Georgia', serif;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.15);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Georgia', serif;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

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

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-color);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.1) 0%, rgba(255, 255, 255, 1) 100%);
    padding-top: 80px;
}

.hero-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
}

.hero-image {
    margin: 0 auto;
    max-width: 300px;
}

.hero-image img {
    border-radius: 50%;
    border: 5px solid var(--primary-color);
}

.hero-text {
    flex: 1;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-btns {
    justify-content: center;
}

.hero-text h1 span {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

.btn {
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(145deg, var(--accent-color), #a90cbb);
    color: var(--white);
    border: 1px solid #8119cb;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 4px 8px rgba(212, 55, 152, 0.6);
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: pulseGlow 3s ease-in-out infinite;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: linear-gradient(145deg, #6a4b8c, #3a1f5a);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: pulseGlowOutline 3s ease-in-out infinite;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 60%, rgba(255,255,255,0) 100%);
    transform: rotate(25deg);
    transition: all 0.7s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
    left: 100%;
    top: 100%;
    transition: all 0.7s ease;
}

.btn-primary:hover {
    background: linear-gradient(145deg, #bfa233, var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.8), inset 0 1px 0 rgba(255,255,255,0.8);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 60%, rgba(255,255,255,0) 100%);
    transform: rotate(25deg);
    transition: all 0.7s ease;
    opacity: 0;
}

.btn-outline:hover::before {
    opacity: 1;
    left: 100%;
    top: 100%;
    transition: all 0.7s ease;
}

.btn-outline:hover {
    background: linear-gradient(145deg, #3a1f5a, #6a4b8c);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(75, 46, 131, 0.8), inset 0 1px 0 rgba(255,255,255,0.8);
}

.hero-image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.hero-image img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 40px rgba(75, 46, 131, 0.7);
}

/* About Section */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.about-content {
    justify-content: center;
    text-align: center;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-category {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, color 0.3s;
    cursor: pointer;
}

.skill-category:hover {
    transform: translateY(-10px);
    color: #d8b4e2;
}

.skill-category h3 {
    transition: color 0.3s;
}

.skill-category:hover h3 {
    color: #d8b4e2;
    text-shadow: 0 0 8px #d8b4e2;
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.skill-category ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-category ul li {
    background-color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 60%, rgba(255,255,255,0) 100%);
    transform: rotate(25deg);
    opacity: 0;
    transition: all 0.7s ease;
    pointer-events: none;
    border-radius: 10px;
}

.project-card:hover::before {
    opacity: 1;
    left: 100%;
    top: 100%;
    transition: all 0.7s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(75, 46, 131, 0.3);
}

.project-img {
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--light-text);
    margin-bottom: 15px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-stack span {
    background-color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.project-links a:first-child {
    background-color: var(--primary-color);
    color: var(--white);
}

.project-links a:last-child {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.project-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    padding: 20px 40px;
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: 80px;
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: 80px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

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

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

.timeline-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.date {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.timeline-content ul {
    margin-left: 20px;
}

.timeline-content ul li {
    margin-bottom: 8px;
    position: relative;
}

.timeline-content ul li::before {
    content: '▹';
    position: absolute;
    left: -20px;
    color: var(--primary-color);
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.achievement-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.achievement-card:hover {
    transform: translateY(-10px);
}

.achievement-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.achievement-card a {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 10px;
    transition: color 0.3s;
}

.achievement-card a:hover {
    color: #4a148c;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-details i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.contact-social {
    display: flex;
    gap: 20px;
}

.contact-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    transition: all 0.3s;
}

.contact-social a:hover {
    background-color: #4a148c;
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background-color: #4a148c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 27, 154, 0.3);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.2);
}

.footer-content p {
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #4a148c;
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content, .about-content, .contact-content {
        flex-direction: column;
    }

    .hero-text, .about-text, .contact-info, .contact-form {
        text-align: center;
    }

    .hero-btns, .contact-social {
        justify-content: center;
    }
    
    .hero {
        background: linear-gradient(135deg, rgba(106, 27, 154, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
        position: relative;
        overflow: hidden;
    }

    .hero::before {
        content: '';
        position: absolute;
        width: 600px;
        height: 600px;
        border-radius: 50%;
        background: rgba(106, 27, 154, 0.05);
        top: -300px;
        right: -300px;
        z-index: 0;
    }
    
    .hero-text h1 {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        padding-left: 80px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
        padding-right: 0;
        padding-left: 80px;
    }

    .timeline-item::after {
        left: 20px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .social-icons {
        display: none;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .project-links {
        flex-direction: column;
        gap: 10px;
    }

    .project-links a {
        width: 100%;
        text-align: center;
    }
}

/* #background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: transparent;
} */