:root {
    --primary-color: #5b21b6; /* Violet-800 */
    --secondary-color: #4c1d95; /* Violet-900 */
    --accent-color: #fbbf24; /* Amber-400 */
    --bg-color: #fdf4ff; /* Light Fuchsia/Pink tint for fantasy feel */
    --text-color: #1f2937; /* Gray-800 */
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --border-radius: 12px;
    --heading-font: 'Merriweather', serif;
    --body-font: 'Lato', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    line-height: 1.6;
    padding-top: 70px;
    background-image: radial-gradient(#e9d5ff 1px, transparent 1px);
    background-size: 20px 20px;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--secondary-color);
    font-weight: 700;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(91, 33, 182, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
}

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

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

/* Header */
header {
    text-align: center;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 6px solid white;
    box-shadow: 0 10px 25px rgba(91, 33, 182, 0.2);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05) rotate(2deg);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px rgba(251, 191, 36, 0.3);
}

header p {
    font-size: 1.3rem;
    color: var(--text-color);
    font-weight: 400;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.social-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(91, 33, 182, 0.2);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '✦';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--accent-color);
}

.about-content {
    background: var(--card-bg);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid rgba(91, 33, 182, 0.1);
}

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

.personal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 40px;
    gap: 30px;
    border-top: 2px dashed #e5e7eb;
    padding-top: 40px;
}

.detail-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-family: var(--heading-font);
    font-size: 1.1rem;
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 3px;
    background: #e9d5ff;
}

.timeline-item {
    margin-bottom: 50px;
    padding-left: 60px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 5px;
    width: 22px;
    height: 22px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-year {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px rgba(91, 33, 182, 0.2);
}

.timeline-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.skill-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #f3f4f6;
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.skill-name {
    display: block;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

/* Product Section */
.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 50px;
    border: 1px solid rgba(91, 33, 182, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(91, 33, 182, 0.3);
}

.product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(91, 33, 182, 0.4);
}

/* Contact */
.contact-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.contact-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    text-align: center;
    padding: 50px 0;
    background-color: var(--secondary-color);
    color: #e9d5ff;
    font-size: 0.95rem;
}

/* Scroll to Top */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    cursor: pointer;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn[style*="display: block"] {
    display: flex !important;
}

#scrollTopBtn:hover {
    transform: translateY(-5px) rotate(360deg);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        padding: 40px 0;
        gap: 25px;
    }

    .nav-menu.active {
        left: 0;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .personal-details {
        grid-template-columns: 1fr;
        text-align: left;
    }
}