:root {
    --primary-purple: #8a4fff;
    --primary-pink: #ff4f8a;
    --primary-blue: #4f8aff;
    --text-dark: #333;
    --text-light: #666;
    --background: #fff;
    --card-bg: #f8f9fa;
    --gradient: linear-gradient(135deg, var(--primary-purple), var(--primary-pink), var(--primary-blue));
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    padding-top: var(--nav-height);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-purple);
}

/* Page Header */
.page-header {
    background: var(--gradient);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Home Page Styles */
.home-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.quick-links {
    margin-bottom: 4rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.link-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.link-card i {
    font-size: 2rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

/* Gallery Styles */
.gallery-section {
    padding: 0 2rem;
    margin-bottom: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-image {
        height: 250px;
    }
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    margin-bottom: 4rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-excerpt {
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
}

.blog-categories {
    padding: 0 2rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.category-tag {
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background-color 0.3s ease;
}

.category-tag:hover {
    background: var(--primary-purple);
    color: white;
}

/* Games and Activities Styles */
.games-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    margin-bottom: 4rem;
}

.game-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 2rem 0;
}

.memory-card {
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.memory-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-back {
    transform: rotateY(180deg);
}

.word-scramble-content {
    margin: 2rem 0;
}

.scrambled {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-purple);
}

#userGuess {
    padding: 0.5rem;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border: 2px solid var(--card-bg);
    border-radius: 5px;
}

.game-button {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    margin: 0.5rem;
    transition: background-color 0.3s ease;
}

.game-button:hover {
    background: var(--primary-pink);
}

.art-section {
    padding: 0 2rem;
    margin-bottom: 4rem;
}

.canvas-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#drawingCanvas {
    border: 2px solid var(--card-bg);
    border-radius: 5px;
    margin-bottom: 1rem;
}

.canvas-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.canvas-controls button {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.canvas-controls button:hover {
    background: var(--primary-pink);
}

/* Header/Hero Section */
.hero {
    background: var(--gradient);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 4rem;
}

h2 {
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Professional Summary */
.professional-summary p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.key-responsibilities ul,
.achievements ul {
    list-style: none;
    margin-left: 1rem;
}

.key-responsibilities li,
.achievements li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.key-responsibilities li:before,
.achievements li:before {
    content: "•";
    color: var(--primary-pink);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Experience Section */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.experience-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
}

.experience-card.current {
    border: 2px solid var(--primary-purple);
}

.experience-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Company Logo Specific Styling */
.current .experience-image {
    padding: 2rem;
    height: 160px;
    object-fit: contain;
    background: transparent;
    border: none;
    margin: 1rem auto;
    display: block;
}

.company {
    color: var(--primary-pink);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.duration {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.skill-category li:before {
    content: "→";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
}

/* Education Section */
.education-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.institution {
    color: var(--primary-pink);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.fields {
    margin-bottom: 0.5rem;
}

.year {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Interests Section */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.interest-item {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.interest-item:hover {
    transform: translateY(-3px);
}

.interest-item i {
    color: var(--primary-purple);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--gradient);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

footer h2 {
    color: white;
}

footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

footer i {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    main {
        padding: 1rem;
    }

    .experience-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 150px;
        height: 150px;
    }

    .interests-grid {
        grid-template-columns: 1fr;
    }
}
