/* filepath: /Users/ananthdeepaksharmananduri/IdeaProjects/Portfolio/styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

:root {
    /* Dark theme (Space Theme) */
    --primary-color: #7B8CDE;       /* Cosmic blue */
    --primary-light: #A5B4E8;       /* Light cosmic blue */
    --primary-dark: #4A5899;        /* Deep cosmic blue */
    --secondary-color: #9C6BFF;     /* Nebula purple */
    --accent-color: #FF61D8;        /* Space pink */
    --bg-color: #0A0B1A;            /* Deep space */
    --card-bg: #12142B;             /* Space station */
    --text-color: #E2E8FF;          /* Star light */
    --text-muted: #8B97C7;          /* Cosmic dust */
    --light-color: #FFFFFF;         /* Pure starlight */
    --dark-color: #060714;          /* Black hole */
    --border-color: rgba(123, 140, 222, 0.15); /* Cosmic borders */
    --shadow-color: rgba(0, 0, 0, 0.35);
    --gradient-primary: linear-gradient(135deg, #7B8CDE, #4A5899);
    --gradient-accent: linear-gradient(135deg, #FF61D8, #9C6BFF);
    --gradient-card: linear-gradient(135deg, rgba(18, 20, 43, 0.95), rgba(10, 11, 26, 0.95));
    
    /* RGB values for advanced effects */
    --primary-color-rgb: 123, 140, 222;
    --primary-light-rgb: 165, 180, 232;
    --primary-dark-rgb: 74, 88, 153;
    --secondary-color-rgb: 156, 107, 255;
    --accent-color-rgb: 255, 97, 216;
    --bg-color-rgb: 10, 11, 26;
    --card-bg-rgb: 18, 20, 43;
    --text-color-rgb: 226, 232, 255;
    
    /* Base variables */
    --border-radius: 12px;
    --font-family: 'Poppins', sans-serif;
    
    /* Social media colors */
    --linkedin-color: #0077b5;
    --github-color: #333333;
    --twitter-color: #1DA1F2;
    --instagram-color: #E1306C;
    --youtube-color: #FF0000;
    --threads-color: #ffffff;
    --medium-color: #00AB6C;
    --tiktok-color: #ff0050;
    
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.2);

    /* Light Theme */
    --bg-primary-light: #ffffff;
    --bg-secondary-light: #f8f9fa;
    --text-primary-light: #2d3436;
    --text-secondary-light: #636e72;
    --accent-color-light: #ff7675;
    --accent-color-dark-light: #d63031;
    --border-color-light: #dfe6e9;

    /* Dark Theme */
    --bg-primary-dark: #2d3436;
    --bg-secondary-dark: #353b48;
    --text-primary-dark: #f5f6fa;
    --text-secondary-dark: #dcdde1;
    --accent-color-dark: #ff7675;
    --accent-color-dark-dark: #fab1a0;
    --border-color-dark: #636e72;
}

/* Theme Variables */
[data-theme="light"] {
    --bg-primary: var(--bg-primary-light);
    --bg-secondary: var(--bg-secondary-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --accent-color: var(--accent-color-light);
    --accent-color-dark: var(--accent-color-dark-light);
    --border-color: var(--border-color-light);
}

[data-theme="dark"] {
    --bg-primary: var(--bg-primary-dark);
    --bg-secondary: var(--bg-secondary-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --accent-color: var(--accent-color-dark);
    --accent-color-dark: var(--accent-color-dark-dark);
    --border-color: var(--border-color-dark);
}

/* Base Styles */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light theme colors */
[data-theme="light"] {
    /* Nature/Forest theme - Fresh, organic aesthetic */
    --primary-color: #2D5A27;       /* Forest green */
    --primary-light: #4A7A43;       /* Sunlit leaves */
    --primary-dark: #1B3B1B;        /* Deep forest */
    --secondary-color: #8AB77D;     /* Fresh sage */
    --accent-color: #F0B67F;        /* Golden sunlight */
    --bg-color: #F5F9F2;            /* Morning mist */
    --card-bg: #FFFFFF;             /* Pure cloud */
    --text-color: #2C3E2D;          /* Forest bark */
    --text-muted: #5C745E;          /* Forest shade */
    --light-color: #FFFFFF;         /* Sunlight */
    --dark-color: #1B2C1C;          /* Deep woods */
    --border-color: rgba(45, 90, 39, 0.12);
    --shadow-color: rgba(45, 90, 39, 0.15);
    --gradient-primary: linear-gradient(135deg, #2D5A27, #4A7A43);
    --gradient-accent: linear-gradient(135deg, #F0B67F, #E4A76F);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 249, 242, 0.95));
    
    /* RGB values for advanced effects */
    --primary-color-rgb: 45, 90, 39;
    --primary-light-rgb: 74, 122, 67;
    --primary-dark-rgb: 27, 59, 27;
    --secondary-color-rgb: 138, 183, 125;
    --accent-color-rgb: 240, 182, 127;
    --bg-color-rgb: 245, 249, 242;
    --card-bg-rgb: 255, 255, 255;
    --text-color-rgb: 44, 62, 45;
    
    --code-bg: #EFF4EC;
    --quote-bg: #EFF4EC;
}

/* Additional aesthetic colors for specific UI elements */
:root {
    --success-color: #10b981; /* Emerald */
    --warning-color: #f59e0b; /* Amber */
    --error-color: #ef4444; /* Red */
    --info-color: #3b82f6; /* Blue */
    --neutral-gray: #64748b; /* Slate */
    --neutral-light: #cbd5e1; /* Light slate */
}

/* Light mode specific UI adjustments */
[data-theme="light"] .page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
}

/* Dark mode specific UI adjustments */
[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #4c1d95, #1e3a8a); /* Darker violet to indigo gradient */
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 126, 182, 0.3);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 126, 182, 0.4);
}

.theme-toggle:active {
    transform: translateY(1px) scale(0.98);
}

.theme-toggle i {
    font-size: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme-toggle:hover i {
    transform: rotate(45deg);
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.7em 1.7em;
    background: var(--gradient-primary);
    color: var(--light-color);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 10px rgba(var(--primary-dark-rgb), 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 7px 15px rgba(var(--primary-dark-rgb), 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 5px rgba(var(--primary-dark-rgb), 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

/* Section headings */
section h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    position: relative;
    text-align: center;
    padding-bottom: 0.8rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 4px;
}

/* Card styling */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(var(--primary-dark-rgb), 0.15);
    border-color: rgba(var(--primary-color-rgb), 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
}

.card:hover::before {
    transform: scaleX(1);
}

/* Profile section enhancements */
.profile-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.profile-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.2);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    flex-shrink: 0;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(var(--primary-color-rgb), 0.3);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.profile-info h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Social icons styling */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-icons a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.social-icons a:hover::before {
    opacity: 1;
}

.social-icons a i {
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 2;
}

.social-icons a:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--light-color);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Section styling with improved gradients and patterns */
section {
    padding: 5rem 5% 6rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='currentColor' fill-opacity='0.25' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    transition: opacity 0.4s ease;
}

[data-theme="light"] section::before {
    opacity: 0.04;
}

/* Alternating section colors */
section:nth-child(odd) {
    background: linear-gradient(to bottom, #0A0B1A, #12142B);
}

section:nth-child(even) {
    background: linear-gradient(to bottom, #12142B, #0A0B1A);
}

[data-theme="light"] section:nth-child(odd) {
    background: linear-gradient(to bottom, #F5F9F2, #FFFFFF);
}

[data-theme="light"] section:nth-child(even) {
    background: linear-gradient(to bottom, #FFFFFF, #F5F9F2);
}

/* Skill tags */
.skill-tag {
    display: inline-block;
    padding: 0.4em 1em;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.25rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    box-shadow: 0 2px 5px rgba(var(--primary-color-rgb), 0.05);
}

.skill-tag:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(var(--primary-color-rgb), 0.2);
}

/* Footer styling */
footer {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 3rem 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] footer {
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), var(--accent-color), transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Accent colors for links */
a {
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* Page background gradient */
body {
    position: relative;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54 22c0-12-18-4-18 4s12 10 18-4zm-6 22c0-12-18-4-18 4s12 10 18-4zm-18-4c0-12-18-4-18 4s12 10 18-4zm-18 4c0-12-18-4-18 4s12 10 18-4z' fill='%232D5A27' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E"),
        radial-gradient(circle at top right, rgba(74, 122, 67, 0.07), transparent 50%),
        radial-gradient(circle at bottom left, rgba(240, 182, 127, 0.07), transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Skills Section */
.skills ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

.skills li {
    background: rgba(58, 134, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.skills li:hover {
    background: rgba(58, 134, 255, 0.2);
    transform: translateY(-5px);
}

.skills li::before {
    content: '✓';
    margin-right: 10px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Portfolio grid configuration */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Convert existing portfolio list to the new grid */
.portfolio ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0;
    list-style: none;
    margin: 2rem 0;
}

.portfolio li {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio li:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 15px 30px rgba(var(--primary-dark-rgb), 0.15);
    border-color: rgba(var(--primary-color-rgb), 0.2);
}

.portfolio li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 2rem;
    height: 100%;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.portfolio li a i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio li:hover a i {
    transform: scale(1.2);
    color: var(--accent-color);
}

/* Contact Section Improvements */
.contact {
    background-color: #000000;
    color: #ffffff;
    padding: 3rem 5%;
    padding-top: 120px;
    position: relative;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-method {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(var(--primary-dark-rgb), 0.15);
    border-color: rgba(var(--primary-color-rgb), 0.2);
}

.contact-method i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-method:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

.contact-method h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-method p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact .section-intro {
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Form styling improvements */
.contact-form {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.submit-btn {
    background: var(--gradient-primary);
    color: var(--light-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.8rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 10px rgba(var(--primary-dark-rgb), 0.3);
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-dark-rgb), 0.4);
}

/* Section headings */
.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 800px;
}

/* Activity items */
.activity-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

.activity-image {
    height: 200px;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.activity-item:hover .activity-image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.activity-content {
    padding: 1.5rem;
}

.activity-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.activity-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-toggle {
    transition: opacity 0.3s ease;
}

.feature-toggle:hover {
    opacity: 0.9;
}

.toggle-switch input:checked + .slider {
    background-color: #2196F3;
}

.toggle-switch input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

/* Hide toggle in production */
.production .feature-toggle {
    display: none !important;
}

/* Mobile Social Toggle */
.social-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    box-shadow: 0 4px 15px var(--shadow-color);
    cursor: pointer;
    border: none;
}

.social-mobile-toggle:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Back to top button - Improved visibility */
.back-to-top-container {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    z-index: 9999 !important;
}

.back-to-top {
    background-color: #6c8aff !important;
    color: white !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 0;
    visibility: hidden;
}

.back-to-top:hover {
    background-color: #5872d8 !important;
    transform: translateY(-5px) !important;
}

.back-to-top.show, 
.back-to-top[style*="opacity: 1"] {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure chatbot is always on top */
.chatbot-container {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 1000 !important;
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
    .back-to-top-container {
        bottom: 20px !important;
        right: 85px !important; /* Adjusted for mobile to maintain spacing from chatbot */
    }

    .back-to-top {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }

    .chatbot-container {
        bottom: 20px !important;
        right: 20px !important;
    }
}

/* Override any potential inline styles */
[style*="position: fixed"] {
    &.back-to-top-container {
        right: 100px !important;
    }
    
    &.chatbot-container {
        right: 30px !important;
    }
}

/* Light theme adjustments */
[data-theme="light"] .back-to-top {
    background: linear-gradient(135deg, #3a56e4 0%, #5b87ff 100%) !important;
    color: white !important;
}

[data-theme="light"] .back-to-top:hover {
    background: linear-gradient(135deg, #5b87ff 0%, #3a56e4 100%) !important;
}

/* Ensure proper stacking context */
body {
    position: relative;
    z-index: 1;
}

.navigation {
    z-index: 1000 !important;
}

.social-sidebar {
    z-index: 998 !important;
}

.back-to-top-container {
    z-index: 999 !important;
}

.chatbot-container {
    z-index: 1000 !important;
}

/* Ensure consistent spacing for section headers */
.section-title {
    margin-top: 40px;
    margin-bottom: 30px;
    position: relative;
}

/* Adjust profile section spacing */
.profile {
    padding-top: 100px; /* Increased padding for the profile section */
    margin-bottom: 60px;
}

/* Ensure consistent spacing for all main sections */
main section {
    padding-top: 120px;
    position: relative;
}

/* Specific section padding for sub-pages */
.sports-section,
.art-section,
.travel-section,
.activity-section {
    padding-top: 150px; /* Increased from 120px to 150px */
    position: relative;
}

/* Ensure consistent spacing for section headers in sub-pages */
.sports-section .section-title,
.art-section .section-title,
.travel-section .section-title,
.activity-section .section-title {
    margin-top: 60px; /* Increased from 40px to 60px */
    margin-bottom: 40px; /* Increased from 30px to 40px */
    position: relative;
}

/* Add spacing for content sections in sub-pages */
.sports-section .content,
.art-section .content,
.travel-section .content,
.activity-section .content {
    padding-top: 3rem; /* Increased from 2rem to 3rem */
    position: relative;
}

/* Light mode improvements for better contrast */
[data-theme="light"] {
    /* Adjust colors for improved contrast in light mode */
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --code-bg: #f5f5f5;
    --quote-bg: #f5f5f5;
}

[data-theme="light"] .btn {
    color: var(--light-color);
}

[data-theme="light"] .page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--light-color);
}

[data-theme="light"] .project-card a:not(.btn) {
    color: var(--primary-color);
}

[data-theme="light"] blockquote {
    background-color: var(--quote-bg);
    border-left: 4px solid var(--primary-color);
}

[data-theme="light"] pre, 
[data-theme="light"] code {
    background-color: var(--code-bg);
    color: var(--dark-color);
}

/* Ensure social sidebar is consistent */
[data-theme="light"] .social-sidebar {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Ensure Back-to-top button has good contrast */
[data-theme="light"] .back-to-top {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Adjust headings in light mode */
[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3, 
[data-theme="light"] h4, 
[data-theme="light"] h5, 
[data-theme="light"] h6 {
    color: var(--dark-color);
}

/* Style adjustments for the nav menu in light mode */
[data-theme="light"] nav ul li a:hover,
[data-theme="light"] nav ul li a.active {
    color: var(--primary-color);
}

/* Mobile responsiveness for theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        top: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
    }
    
    .theme-toggle i {
        font-size: 1.3rem !important;
    }
}

/* Logo styling */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-image {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.logo, .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* Ensure proper logo sizing */
nav .logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-height: 40px;
    overflow: visible;
    transform: none !important;
}

nav .logo-image {
    height: 35px;
    width: auto;
    max-width: 35px;
    max-height: 35px;
    margin-right: 8px;
    transform: none !important;
    transition: transform 0.3s ease;
}

nav .logo, 
nav .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    transform: none !important;
    max-width: 50px;
}

/* Override any transform animations that might affect the logo */
@keyframes none-for-logo {
    0%, 100% { transform: none; }
}

.logo-container, 
.logo-image, 
.logo, 
.logo-text {
    animation: none !important;
    transform: none !important;
}

/* Global logo fixes - priority override */
.logo-container, nav .logo-container, a.logo-container {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    max-height: 40px !important;
    overflow: visible !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

.logo-image, nav .logo-image, a .logo-image {
    height: 35px !important;
    width: auto !important;
    max-width: 35px !important;
    max-height: 35px !important;
    margin-right: 8px !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

.logo, .logo-text, nav .logo, nav .logo-text, a .logo, a .logo-text {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    transform: none !important;
    max-width: 50px !important;
    transition: none !important;
    animation: none !important;
}

/* Prevent any transformations on logo elements */
.logo-container *, nav .logo-container * {
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* Basic Social Sidebar - Steel theme for dark mode */
.social-sidebar {
    position: fixed !important;
    top: 50% !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    display: none !important;
    flex-direction: column !important;
    gap: 15px !important;
    padding: 15px 12px !important;
    border-radius: 30px 0 0 30px !important;
    z-index: 998 !important;
    width: auto !important;
    height: auto !important;
    background: linear-gradient(145deg, #2C3E50, #34495E) !important; /* Steel gradient */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 
        -5px 0 15px rgba(0, 0, 0, 0.2),
        inset 1px 1px 1px rgba(255, 255, 255, 0.1) !important; /* Metallic effect */
}

.social-sidebar.visible {
    display: flex !important;
}

[data-theme="light"] .social-sidebar {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(45, 90, 39, 0.1) !important;
    box-shadow: 0 4px 20px rgba(45, 90, 39, 0.1) !important;
}

/* Social Icons - Steel theme for dark mode */
.social-sidebar a {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, #34495E, #2C3E50) !important; /* Steel gradient */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 
        2px 2px 5px rgba(0, 0, 0, 0.2),
        inset 1px 1px 1px rgba(255, 255, 255, 0.1) !important; /* Metallic effect */
    text-decoration: none !important;
    color: white !important;
}

[data-theme="light"] .social-sidebar a {
    background: rgba(45, 90, 39, 0.1) !important;
    border: 1px solid rgba(45, 90, 39, 0.2) !important;
    box-shadow: none !important;
}

.social-sidebar a i {
    font-size: 1.2rem !important;
    color: rgba(255, 255, 255, 0.9) !important; /* Slightly dimmed for steel effect */
}

[data-theme="light"] .social-sidebar a i {
    color: var(--primary-color) !important;
}

/* Hover effects - Steel theme */
.social-sidebar a:hover {
    background: linear-gradient(145deg, #3A536A, #2C3E50) !important; /* Darker steel on hover */
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.3),
        inset 1px 1px 1px rgba(255, 255, 255, 0.15) !important;
}

[data-theme="light"] .social-sidebar a:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-light) !important;
}

.social-sidebar a:hover i {
    color: white !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .social-sidebar {
        position: fixed !important;
        bottom: 100px !important;
        right: 0 !important;
        top: auto !important;
        transform: none !important;
        padding: 12px 8px !important;
        border-radius: 20px 0 0 20px !important;
        gap: 12px !important;
    }

    .social-sidebar a {
        width: 35px !important;
        height: 35px !important;
    }

    .social-sidebar a i {
        font-size: 1.1rem !important;
    }
}

/* Ensure proper stacking and visibility */
.social-sidebar {
    pointer-events: auto !important;
}

.social-sidebar a {
    pointer-events: auto !important;
}

.social-sidebar a i {
    pointer-events: none !important;
}

/* Loading animation */
.loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-animation.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(var(--primary-color-rgb), 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s infinite ease-in-out;
}

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

/* Responsive image handling */
img {
    max-width: 100%;
    height: auto;
}

/* Utility classes for spacing */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }

/* Flex utility classes */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-5 { gap: 3rem; }

/* Align top navigation properly */
nav {
    background: rgba(var(--card-bg-rgb), 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

nav ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(1);
}

/* Enhanced Journey section styles */
.journey-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(180deg, #0c0c14 0%, #1a1a2e 100%);
    overflow: hidden;
    min-height: 100vh;
}

html[data-theme="light"] .journey-section {
    background: linear-gradient(180deg, #f5f7fa 0%, #e4e9f2 100%);
}

.journey-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, rgba(108, 138, 255, 0.2), rgba(255, 107, 107, 0.2));
    transform: translateX(-50%);
    z-index: 1;
}

.journey-item {
    position: relative;
    margin-bottom: 100px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    opacity: 1 !important;
    visibility: visible !important;
}

.journey-item:nth-child(even) {
    justify-content: flex-start;
}

.journey-content {
    width: 45%;
    background: rgba(30, 30, 50, 0.95);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

html[data-theme="light"] .journey-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.journey-content:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.journey-date {
    position: absolute;
    top: -20px;
    background: linear-gradient(135deg, #6c8aff, #ff6b6b);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 5px 15px rgba(108, 138, 255, 0.3);
    z-index: 2;
}

.journey-item:nth-child(odd) .journey-date {
    right: -20px;
}

.journey-item:nth-child(even) .journey-date {
    left: -20px;
}

.journey-content h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.4rem;
    margin-top: 15px;
}

html[data-theme="light"] .journey-content h3 {
    color: #333;
}

.journey-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

html[data-theme="light"] .journey-content p {
    color: #666;
}

.journey-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.journey-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

html[data-theme="light"] .journey-tag {
    background: rgba(108, 138, 255, 0.1);
    color: #3a56e4;
}

.journey-tag i {
    font-size: 0.9rem;
    color: #6c8aff;
}

.journey-tag:hover {
    transform: translateY(-2px);
    background: rgba(108, 138, 255, 0.2);
}

.journey-marker {
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: #6c8aff;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(12, 12, 20, 0.9), 0 0 0 8px rgba(108, 138, 255, 0.2);
}

html[data-theme="light"] .journey-marker {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 0 0 8px rgba(108, 138, 255, 0.2);
}

/* Rocket Animation */
.journey-rocket {
    position: fixed;
    right: 50px;
    bottom: 50px;
    font-size: 2rem;
    color: #ff6b6b;
    z-index: 100;
    transition: transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.journey-rocket.visible {
    opacity: 1;
    visibility: visible;
}

.journey-rocket i {
    transform: rotate(-45deg);
}

.rocket-flames {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 20px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #ff6b6b);
    border-radius: 50%;
    opacity: 0.7;
    animation: flicker 0.3s infinite alternate;
}

@keyframes flicker {
    0% { opacity: 0.5; height: 20px; }
    100% { opacity: 0.8; height: 30px; }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .journey-content {
        width: calc(100% - 60px);
    }

    .timeline-line {
        left: 30px;
    }
    
    .journey-item {
        justify-content: flex-start;
        padding-left: 60px;
    }

    .journey-item:nth-child(even) {
        justify-content: flex-start;
    }

    .journey-date {
        left: 70px !important;
        right: auto !important;
    }

    .journey-marker {
        left: 30px;
        transform: none;
    }

    .journey-rocket {
        right: 20px;
        bottom: 20px;
        font-size: 1.5rem;
    }
}

/* Ensure journey items are always visible */
.journey-item, 
.journey-content, 
.journey-date, 
.journey-marker, 
.journey-tags, 
.journey-tag {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: all 0.3s ease !important;
}

/* About Section Styling */
.about-section {
    background: linear-gradient(180deg, #0c0c1d 0%, #1a1a2e 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-content p {
    margin-bottom: 1.5rem;
}

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

@media (max-width: 768px) {
    .about-content {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .about-interests {
        gap: 10px;
    }
}

/* Projects section styling */
.projects-section {
    background-color: #0f3460;
    padding: 80px 0;
}

html[data-theme="light"] .projects-section {
    background-color: #f0f0f0;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Skills Section Styles */
.skills-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    z-index: 0;
        opacity: 0;
    transition: opacity 0.3s ease;
    }

.skill-category:hover::before {
        opacity: 1;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.skill-header i {
    font-size: 24px;
    margin-right: 15px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.skill-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    position: relative;
    z-index: 1;
}

.skill-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-item:hover {
    transform: translateX(5px);
    background: rgba(var(--primary-color-rgb), 0.1);
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

.skill-item i {
    font-size: 18px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.skill-item:hover i {
    transform: scale(1.2);
}

.skill-item span {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Light theme adjustments */
[data-theme="light"] .skills-section {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

[data-theme="light"] .skill-category {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .skill-category:hover {
    box-shadow: 0 15px 30px rgba(var(--primary-color-rgb), 0.15);
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

[data-theme="light"] .skill-header i {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

[data-theme="light"] .skill-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .skill-item:hover {
    background: rgba(var(--primary-color-rgb), 0.08);
    border-color: rgba(var(--primary-color-rgb), 0.2);
}

/* Custom colors for skill icons */
.skill-item i.fa-html5 { color: #E44D26; }
.skill-item i.fa-css3 { color: #1572B6; }
.skill-item i.fa-js { color: #F7DF1E; }
.skill-item i.fa-react { color: #61DAFB; }
.skill-item i.fa-vuejs { color: #4FC08D; }
.skill-item i.fa-angular { color: #DD0031; }
.skill-item i.fa-node-js { color: #68A063; }
.skill-item i.fa-python { color: #3776AB; }
.skill-item i.fa-java { color: #007396; }
.skill-item i.fa-aws { color: #FF9900; }
.skill-item i.fa-docker { color: #2496ED; }
.skill-item i.fa-kubernetes { color: #326CE5; }
.skill-item i.fa-brain { color: #FF6B6B; }
.skill-item i.fa-database { color: #4479A1; }
.skill-item i.fa-server { color: #FF6C37; }
.skill-item i.fa-project-diagram { color: #E535AB; }
.skill-item i.fa-cloud { color: #4285F4; }
.skill-item i.fa-android { color: #3DDC84; }
.skill-item i.fa-apple { color: #000000; }
.skill-item i.fa-unity { color: #000000; }
.skill-item i.fa-vr-cardboard { color: #FF4081; }
.skill-item i.fa-microchip { color: #00979D; }
.skill-item i.fa-shield-alt { color: #F44336; }
.skill-item i.fa-ethereum { color: #627EEA; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

    .skill-header i {
        font-size: 20px;
        padding: 10px;
    }

    .skill-header h3 {
        font-size: 1.2rem;
    }

    .skill-items {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 12px;
    }

    .skill-item {
        padding: 8px;
    }

    .skill-item i {
        font-size: 16px;
    }

    .skill-item span {
        font-size: 0.9rem;
    }
}

/* Contact section styling */
.contact-section {
    background-color: #0f3460;
    padding: 80px 0;
    background: var(--bg-primary);
}

.portfolio-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.portfolio-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-align: center;
}

/* Portfolio Navigation Buttons */
.portfolio-nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.portfolio-nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-nav-button i {
    font-size: 2rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.portfolio-nav-button span {
    font-size: 0.9rem;
    font-weight: 500;
}

.portfolio-nav-button:hover {
    transform: translateY(-5px);
    background: var(--accent-color);
    color: white;
}

.portfolio-nav-button:hover i {
    transform: scale(1.1);
}

/* Portfolio Tabs */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.portfolio-tab {
    padding: 8px 20px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.portfolio-tab.active,
.portfolio-tab:hover {
    background: var(--accent-color);
    color: white;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 20px;
}

.portfolio-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.portfolio-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tags span {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-nav-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-nav-button {
        padding: 15px;
    }

    .portfolio-nav-button i {
        font-size: 1.5rem;
    }

    .portfolio-nav-button span {
        font-size: 0.8rem;
    }

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

@media (max-width: 480px) {
    .portfolio-nav-buttons {
        grid-template-columns: 1fr;
    }

    .portfolio-tabs {
        flex-direction: column;
        align-items: stretch;
    }

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

/* Chatbot styles */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    font-family: var(--font-primary);
}

.chatbot-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.chatbot-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chatbot-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.3);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--bg-primary);
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chatbot-window.active {
    display: flex;
}

.chatbot-header {
    padding: 15px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.chatbot-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
}

.chatbot-header span {
    color: #ffd700;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: transform 0.3s ease;
}

.chatbot-close:hover {
    transform: scale(1.1);
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    margin: 5px 0;
    line-height: 1.4;
    font-size: 0.95rem;
}

.bot-message {
    background: var(--card-bg);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chatbot-input {
    padding: 15px;
    background: var(--card-bg);
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border-color);
}

.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-primary);
    color: var(--text-color);
    font-size: 0.9rem;
}

.chatbot-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.chatbot-input button:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .chatbot-container {
        bottom: 20px;
        right: 20px;
    }
    
    .chatbot-window {
        width: calc(100vw - 40px);
        height: 60vh;
        bottom: 70px;
        right: -10px;
    }
    
    .chatbot-icon {
        width: 50px;
        height: 50px;
    }
    
    .chatbot-icon i {
        font-size: 20px;
    }
}
/* Updated Journey Section Styles */
.journey-section {
    padding: 80px 0;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.journey-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0.3;
}

.journey-item {
    position: relative;
    margin-bottom: 100px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.journey-item:nth-child(even) {
    justify-content: flex-start;
}

.journey-content {
    width: 45%;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.journey-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.15);
    border-color: var(--primary-color);
}

.journey-date {
    position: absolute;
    top: -15px;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
    z-index: 2;
}

.journey-item:nth-child(odd) .journey-date {
    right: 20px;
}

.journey-item:nth-child(even) .journey-date {
    left: 20px;
}

.journey-content h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    margin-top: 20px;
}

.journey-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.journey-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.journey-tag {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.journey-tag i {
    font-size: 0.9rem;
}

.journey-tag:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
}

.journey-marker {
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--bg-color), 0 0 0 8px rgba(var(--primary-color-rgb), 0.2);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .journey-content {
        width: calc(100% - 60px);
    }

    .timeline-line {
        left: 30px;
    }

    .journey-item {
        justify-content: flex-start;
        padding-left: 60px;
    }

    .journey-item:nth-child(even) {
        justify-content: flex-start;
    }

    .journey-date {
        left: 70px !important;
        right: auto !important;
    }

    .journey-marker {
        left: 30px;
        transform: none;
    }
}

@media (max-width: 768px) {
    .journey-content {
        width: calc(100% - 40px);
        padding: 20px;
    }

    .journey-item {
        padding-left: 40px;
    }

    .journey-date {
        left: 50px !important;
        font-size: 0.85rem;
        padding: 6px 15px;
    }

    .journey-content h3 {
        font-size: 1.2rem;
    }

    .journey-content p {
        font-size: 0.9rem;
    }

    .journey-tag {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

/* Light theme adjustments */
[data-theme="light"] .journey-section {
    background: var(--bg-color);
}

[data-theme="light"] .journey-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .journey-marker {
    box-shadow: 0 0 0 4px var(--bg-color), 0 0 0 8px rgba(var(--primary-color-rgb), 0.2);
}

/* Enhanced Contact Section Styles */
.contact-section {
    padding: 80px 0;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    background: rgba(30, 30, 50, 0.7);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

html[data-theme="light"] .contact-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

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

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-item h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
}

.contact-item p {
    color: var(--text-muted);
    margin: 0;
}

.contact-form {
    background: rgba(30, 30, 50, 0.7);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

html[data-theme="light"] .contact-form {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

html[data-theme="light"] .contact-form input,
html[data-theme="light"] .contact-form textarea {
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.2);
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.5);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Floating labels animation */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group textarea + label {
    top: 25px;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 15px;
    font-size: 0.85rem;
    padding: 0 5px;
    background: var(--bg-color);
    color: var(--primary-color);
}

/* Success message animation */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.submit-success {
    color: #4CAF50;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background: rgba(76, 175, 80, 0.1);
    animation: successPulse 0.5s ease;
}

/* Responsive styles */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info {
        flex-direction: row;
    flex-wrap: wrap;
    }

    .contact-item {
        flex: 1 1 calc(50% - 15px);
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .contact-item {
        flex: 1 1 100%;
    }

    .contact-form {
        padding: 30px;
    }

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

/* Books and Cooking Section Styles */
.books-section,
.cooking-section {
    padding: 120px 0 60px;
    background: var(--bg-color);
    min-height: 100vh;
}

.books-container,
.cooking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.books-grid,
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.book-card,
.recipe-card {
    background: rgba(30, 30, 50, 0.7);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-image,
.recipe-image {
    height: 140px;
    position: relative;
    overflow: hidden;
}

.book-image img,
.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-content,
.recipe-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.book-year,
.recipe-year {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #ff6b6b, #6c8aff);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    z-index: 2;
}

.book-title,
.recipe-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: var(--text-color);
}

.book-author,
.recipe-author {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.book-rating,
.recipe-rating {
    color: #FFD700;
    font-size: 0.9rem;
    display: flex;
    gap: 0.2rem;
}

.book-description,
.recipe-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
}

.book-tags,
.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.book-tag,
.recipe-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

/* Light theme adjustments */
[data-theme="light"] .book-card,
[data-theme="light"] .recipe-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .book-tag,
[data-theme="light"] .recipe-tag {
    background: rgba(0, 0, 0, 0.05);
}

/* Hover effects */
.book-card:hover,
.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.book-card:hover .book-image img,
.recipe-card:hover .recipe-image img {
    transform: scale(1.05);
}

.book-tag:hover,
.recipe-tag:hover {
    background: rgba(var(--primary-color-rgb), 0.2);
    transform: translateY(-2px);
}

/* Category filter styles */
.categories-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.category-button {
    padding: 0.6rem 1.2rem;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-button.active,
.category-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .books-grid,
    .recipes-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .book-image,
    .recipe-image {
        height: 120px;
    }

    .book-content,
    .recipe-content {
        padding: 1rem;
        gap: 0.5rem;
    }

    .book-title,
    .recipe-title {
        font-size: 1rem;
    }

    .categories-filter {
        gap: 0.75rem;
        margin: 1.5rem 0;
    }

    .category-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .books-container,
    .cooking-container {
        padding: 0 15px;
    }
}

/* Logo and Profile Photo Styles */
.logo-profile {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 5px;
}

.profile-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Navigation styles */
.navigation {
    background: rgba(var(--card-bg-rgb), 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Canonical pill theme toggle (site-wide) */
.navigation .theme-toggle {
    height: 40px !important;
    width: 88px !important;
    border-radius: 999px !important;
    padding: 6px 10px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background: rgba(28, 28, 46, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.navigation .theme-toggle .toggle-icons {
    display: flex;
    width: 100%;
    justify-content: space-between;
    z-index: 2;
}

.navigation .theme-toggle .toggle-slider {
    position: absolute;
    top: 4px;
    left: 6px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html[data-theme="light"] .navigation .theme-toggle .toggle-slider {
    transform: translateX(42px);
    left: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .profile-photo {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .navigation {
        padding: 0.6rem 4%;
    }
}

/* Ensure proper spacing after navigation */
.navigation-top-space {
    height: 70px;
}

@media (max-width: 768px) {
    .navigation-top-space {
        height: 60px;
    }
}

/* Global container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}

/* Reviews Section Styles */
.reviews-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.review-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.review-content {
    padding: 20px;
}

.review-rating {
    color: #FFD700;
    margin: 10px 0;
}

.review-rating span {
    color: var(--text-color);
    margin-left: 10px;
}

.review-summary {
    color: var(--text-muted);
    margin: 15px 0;
    line-height: 1.5;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 15px 0;
}

.review-link {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.review-link:hover {
    background: var(--primary-light);
}

/* Gear Section Styles */
.gear-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.gear-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 40px 0;
}

.gear-category {
    padding: 8px 20px;
    border: none;
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.gear-category.active,
.gear-category:hover {
    background: var(--primary-color);
    color: white;
}

.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gear-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.gear-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gear-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.gear-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gear-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.gear-content {
    padding: 20px;
}

.gear-description {
    color: var(--text-muted);
    margin: 15px 0;
    line-height: 1.5;
}

.gear-specs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.gear-specs span {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.gear-specs i {
    color: var(--primary-color);
}

.gear-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.gear-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.gear-button {
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.gear-button:hover {
    background: var(--primary-light);
}

/* Light theme adjustments */
[data-theme="light"] .review-card,
[data-theme="light"] .gear-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .gear-category {
    background: rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reviews-grid,
    .gear-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .gear-categories {
        gap: 10px;
    }

    .gear-category {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .reviews-grid,
    .gear-grid {
        grid-template-columns: 1fr;
    }

    .review-image,
    .gear-image {
        height: 180px;
    }
}

/* Recent Activity Section */
.activity-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(12, 12, 20, 0.95), rgba(20, 20, 35, 0.95));
    position: relative;
    overflow: hidden;
}

html[data-theme="light"] .activity-section {
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.95), rgba(235, 240, 245, 0.95));
}

.activity-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.activity-item {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

html[data-theme="light"] .activity-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.activity-date {
    background: linear-gradient(135deg, #6c8aff, #5272e0);
    color: #fff;
    padding: 20px;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.activity-content {
    padding: 25px;
    flex: 1;
}

.activity-content h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #fff;
}

html[data-theme="light"] .activity-content h3 {
    color: #333;
}

.activity-content p {
    margin: 0 0 15px;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

html[data-theme="light"] .activity-content p {
    color: #666;
}

.activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.activity-tag {
    padding: 5px 12px;
    background: rgba(108, 138, 255, 0.15);
    border-radius: 20px;
    color: #6c8aff;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.activity-tag i {
    font-size: 0.8rem;
}

.view-all-container {
    margin-top: 40px;
    text-align: center;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.view-all-btn i {
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .activity-item {
        flex-direction: column;
    }
    
    .activity-date {
        width: 100%;
        min-width: unset;
        padding: 15px;
    }
    
    .activity-content {
        padding: 20px;
    }
}

/* Recent Activity Dropdown */
.recent-activity-dropdown {
    position: relative;
    margin-right: 15px;
}

.recent-activity-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.recent-activity-btn:hover {
    color: var(--accent-color);
}

.activity-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.recent-activity-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 15px;
    display: none;
    z-index: 1000;
    margin-top: 10px;
}

.recent-activity-dropdown:hover .recent-activity-menu {
    display: block;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.activity-header h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(var(--accent-color-rgb), 0.1);
}

.activity-item.unread {
    background: rgba(var(--accent-color-rgb), 0.05);
}

.activity-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-right: 10px;
    margin-top: 2px;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.activity-footer {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.view-all {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.view-all:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .recent-activity-menu {
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        max-width: 300px;
        margin: 0;
        border-radius: 0;
    }
    
    .recent-activity-btn {
        font-size: 1.1rem;
    }
}

/* Interest Tags Styling */
.interest-tag {
    padding: 10px 18px;
    background: rgba(30, 30, 50, 0.7);
    color: #fff;
    border-radius: 50px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

html[data-theme="light"] .interest-tag {
    background: rgba(255, 255, 255, 0.7);
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.interest-tag:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(108, 138, 255, 0.1));
}

.interest-tag i {
    font-size: 1.2rem;
    color: #ff6b6b;
}

/* Different colors for different interest icons */
.interest-tag:nth-child(1) i { color: #FF5252; } /* Running */
.interest-tag:nth-child(2) i { color: #2196F3; } /* Globe */
.interest-tag:nth-child(3) i { color: #4CAF50; } /* Camera */
.interest-tag:nth-child(4) i { color: #9C27B0; } /* Palette */

@media (max-width: 768px) {
    .interest-tag {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .interest-tag i {
        font-size: 1rem;
    }
}

/* Fix for faded hero/about text in light mode */
html[data-theme="light"] .hero-section,
html[data-theme="light"] .about-section,
html[data-theme="light"] .about-content,
html[data-theme="light"] .hero-section * {
  color: #222 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .hero-name,
html[data-theme="light"] .hero-title,
html[data-theme="light"] .hero-interests,
html[data-theme="light"] .about-content p,
html[data-theme="light"] .about-content {
  color: #222 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Utility class for hiding elements */
.hidden {
  display: none !important;
}

/* ========================================
   PROJECT PAGES UNIVERSAL STYLES
   ======================================== */

/* Project-specific styles with theme support */
.project-details {
    padding-top: 80px;
    min-height: 100vh;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.project-header h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 2rem;
}

[data-theme="light"] .project-header h1 {
    background: linear-gradient(135deg, #4f46e5, #e11d48);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.project-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-date {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(var(--primary-color-rgb), 0.2);
    transform: translateY(-2px);
}

.project-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    max-width: 1200px;
    margin: 2rem auto;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .project-content {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-description {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-color);
}

.project-description h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.project-description h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--accent-color);
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.project-description ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.project-description li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.project-description strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Project images */
.project-image,
.donna-image {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

[data-theme="light"] .project-image,
[data-theme="light"] .donna-image {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-image img,
.donna-portrait {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 500px;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .project-header h1 {
        color: var(--primary-color);
        background: none;
        -webkit-text-fill-color: unset;
    }
}

/* Project page responsive adjustments */
@media (max-width: 768px) {
    .project-details {
        padding-top: 60px;
    }

    .project-header h1 {
        font-size: 2.5rem;
    }

    .project-content {
        margin: 1rem auto;
        padding: 2rem;
    }

    .tech-stack {
        gap: 0.5rem;
    }

    .tech-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .project-description h2 {
        font-size: 1.8rem;
    }

    .project-description h3 {
        font-size: 1.3rem;
    }

    .project-description p {
        font-size: 1rem;
    }
}

/* First section special styling */
.project-description > h2:first-of-type {
    margin-top: 0;
}

/* Ensure proper text contrast in all themes */
[data-theme="light"] .project-details {
    background: var(--bg-color);
    color: var(--text-color);
}

[data-theme="light"] .project-description {
    color: var(--text-color);
}

[data-theme="light"] .project-description p {
    color: var(--text-color);
}

[data-theme="light"] .project-description li {
    color: var(--text-muted);
}

[data-theme="light"] .project-description h2 {
    color: var(--primary-color);
}

[data-theme="light"] .project-description h3 {
    color: var(--accent-color);
}

[data-theme="light"] .project-description strong {
    color: var(--accent-color);
}

/* ========================================
   END PROJECT PAGES UNIVERSAL STYLES
   ======================================== */
