        
        :root {
            /* Classic White Theme (Default) */
            --bg-primary: #fcfcfc;
            --bg-secondary: #ffffff;
            --text-primary: #333333;
            --text-secondary: #666666;
            --accent: #7c4dff;
            --accent-light: #b47cff;
            --shadow: rgba(0, 0, 0, 0.05);
            --card-bg: #ffffff;
            --nav-bg: rgba(255, 255, 255, 0.95);
            --border: rgba(0, 0, 0, 0.06);
            --gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            --theme-name: "Classic White";
        }

        .theme-pastel {
            --bg-primary: #faf7ff;
            --bg-secondary: #ffffff;
            --text-primary: #4a4458;
            --text-secondary: #7a7289;
            --accent: #8a6fe6;
            --accent-light: #a992f7;
            --shadow: rgba(118, 91, 187, 0.08);
            --card-bg: rgba(255, 255, 255, 0.7);
            --nav-bg: rgba(250, 247, 255, 0.95);
            --border: rgba(138, 111, 230, 0.1);
            --gradient: linear-gradient(135deg, #e0d6ff 0%, #aecbfa 50%, #c5e7e2 100%);
            --theme-name: "Pastel Gradient";
        }

        .theme-monochrome {
            --bg-primary: #f8f8f8;
            --bg-secondary: #ffffff;
            --text-primary: #222222;
            --text-secondary: #555555;
            --accent: #555555;
            --accent-light: #888888;
            --shadow: rgba(0, 0, 0, 0.04);
            --card-bg: #ffffff;
            --nav-bg: rgba(248, 248, 248, 0.95);
            --border: rgba(0, 0, 0, 0.08);
            --gradient: linear-gradient(135deg, #f2f2f2 0%, #e5e5e5 100%);
            --theme-name: "Minimal Monochrome";
        }

        .theme-dark {
            --bg-primary: #0f0f14;
            --bg-secondary: #1a1a24;
            --text-primary: #e6e6e6;
            --text-secondary: #b3b3b3;
            --accent: #8a6fe6;
            --accent-light: #a992f7;
            --shadow: rgba(0, 0, 0, 0.2);
            --card-bg: #1a1a24;
            --nav-bg: rgba(15, 15, 20, 0.95);
            --border: rgba(255, 255, 255, 0.08);
            --gradient: linear-gradient(135deg, #2c2c40 0%, #1a1a24 100%);
            --theme-name: "Midnight Dark";
        }

        .theme-cyber {
            --bg-primary: #0d0d12;
            --bg-secondary: #15151c;
            --text-primary: #00ff9d;
            --text-secondary: #66ffc2;
            --accent: #00ff9d;
            --accent-light: #66ffc2;
            --shadow: rgba(0, 255, 157, 0.1);
            --card-bg: #15151c;
            --nav-bg: rgba(13, 13, 18, 0.95);
            --border: rgba(0, 255, 157, 0.15);
            --gradient: linear-gradient(135deg, #2abf86 0%, #060e0b 100%);
            --theme-name: "Cyber Green";
        }

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

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            transition: all 0.4s ease;
            overflow-x: hidden;
            padding-top: 80px; /* Added padding to prevent content from being hidden under fixed header */
        }

        h1, h2, h3, h4 {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            margin-bottom: 1.5rem;
        }

        h1 {
            font-size: 3.5rem;
            line-height: 1.2;
        }

        h2 {
            font-size: 2.5rem;
            position: relative;
            display: inline-block;
            margin-bottom: 3rem;
        }

        h2:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60%;
            height: 3px;
            background: var(--gradient);
            border-radius: 3px;
        }

        p {
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
        }

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

        section {
            padding: 80px 0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        /* Improved Navigation */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 15px 0;
            background: var(--nav-bg);
            backdrop-filter: blur(10px);
            z-index: 1000;
            box-shadow: 0 5px 20px var(--shadow);
            transition: all 0.4s ease;
        }

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

        .logo {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
            font-weight: 600;
            color: var(--text-primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            z-index: 1001;
        }

        .logo-icon {
            margin-right: 10px;
            font-size: 1.5rem;
        }

        .nav-links {
            display: flex;
            list-style: none;
        }

        .nav-links li {
            margin-left: 30px;
        }

        .nav-links a {
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
            position: relative;
        }

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

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

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

        /* Hamburger Menu */
        .hamburger {
            display: none;
            cursor: pointer;
            background: none;
            border: none;
            font-size: 1.8rem;
            color: var(--text-primary);
            z-index: 1001;
        }

        /* Mood Switch */
        .theme-controls {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .mood-label {
            margin-right: 10px;
            font-size: 0.9rem;
            color: var(--text-secondary);
            display: none;
        }

        .mood-switch {
            width: 160px;
            height: 30px;
            background: var(--bg-secondary);
            border-radius: 15px;
            position: relative;
            cursor: pointer;
            box-shadow: inset 0 0 5px var(--shadow);
            border: 1px solid var(--border);
        }

        .mood-slider {
            position: absolute;
            width: 40px;
            height: 24px;
            background: var(--gradient);
            border-radius: 12px;
            top: 2px;
            left: 2px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 5px var(--shadow);
        }

        .mood-option {
            position: absolute;
            align-content: center;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.7rem;
            
            font-weight: 500;
            color: var(--text-secondary);
        }

        .mood-option:nth-child(2) {
            left: 15px;
        }

        .mood-option:nth-child(3) {
            left: 33%;
            transform: translate(-50%, -50%);
        }

        .mood-option:nth-child(4) {
            left: 67%;
            transform: translate(-50%, -50%);
        }

        .mood-option:nth-child(5) {
            right: 15px;
        }

        .theme-indicator {
            font-size: 0.8rem;
            color: var(--text-secondary);
            padding: 5px 10px;
            background: var(--bg-secondary);
            border-radius: 10px;
            border: 1px solid var(--border);
        }

        /* Hero Section */
        .hero {
            text-align: center;
            background: var(--gradient);
            border-radius: 0 0 40px 40px;
            margin-bottom: 40px;
            position: relative;
            overflow: hidden;
            padding: 120px 0 100px;
        }

        .hero-content {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .hero-subtitle {
            font-size: 1.4rem;
            color: var(--text-secondary);
            margin-bottom: 2rem;
        }

        .btn {
            display: inline-block;
            padding: 15px 30px;
            background: var(--accent);
            color: white;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            border: none;
            cursor: pointer;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px var(--shadow);
        }

        .btn:after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(255, 255, 255, 0.5);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%);
            transform-origin: 50% 50%;
        }

        .btn:focus:not(:active)::after {
            animation: ripple 1s ease-out;
        }

        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 1;
            }
            20% {
                transform: scale(20, 20);
                opacity: 1;
            }
            100% {
                transform: scale(50, 50);
                opacity: 0;
            }
        }

        /* About Section */
        .about-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
        }

        .portrait-container {
            position: relative;
            width: fit-content;
            margin: 0 auto;
        }

        .portrait {
            width: 100%;
            max-width: 400px;
            height: 400px;
            border-radius: 50%;
            object-fit: cover;
            margin: 0 auto;
            display: block;
            box-shadow: 0 20px 40px var(--shadow);
            border: 5px solid var(--bg-secondary);
            position: relative;
            z-index: 2;
        }

        .portrait-bg {
            position: absolute;
            width: 100%;
            height: 100%;
            background: var(--gradient);
            border-radius: 50%;
            top: 15px;
            left: 15px;
            z-index: 1;
        }

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

        .project-card {
            background: var(--card-bg);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px var(--shadow);
            transition: all 0.3s ease;
            border: 1px solid var(--border);
            position: relative;
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px var(--shadow);
        }

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

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

        .project-content {
            padding: 20px;
        }

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

        .project-desc {
            font-size: 1rem;
            margin-bottom: 20px;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 15px;
        }

        .project-tag {
            padding: 5px 10px;
            background: var(--accent-light);
            color: white;
            border-radius: 15px;
            font-size: 0.8rem;
        }

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

        .skill {
            margin-bottom: 30px;
        }

        .skill-name {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            font-weight: 500;
        }

        .skill-bar {
            height: 10px;
            background: var(--bg-secondary);
            border-radius: 5px;
            overflow: hidden;
        }

        .skill-progress {
            height: 100%;
            background: var(--gradient);
            border-radius: 5px;
            width: 0;
            transition: width 1s ease;
        }

        /* Contact Section */
        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
        }

        .contact-form {
            background: var(--card-bg);
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 10px 30px var(--shadow);
            border: 1px solid var(--border);
        }

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

        .form-input {
            width: 100%;
            padding: 15px;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: var(--bg-secondary);
            color: var(--text-primary);
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 2px var(--accent-light);
        }

        .form-label {
            position: absolute;
            left: 15px;
            top: 15px;
            color: var(--text-secondary);
            pointer-events: none;
            transition: all 0.3s ease;
        }

        .form-input:focus + .form-label,
        .form-input:not(:placeholder-shown) + .form-label {
            top: -10px;
            left: 10px;
            font-size: 0.8rem;
            background: var(--bg-secondary);
            padding: 0 5px;
            color: var(--accent);
        }

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

        /* Footer */
        footer {
            text-align: center;
            padding: 40px 0;
            background: var(--gradient);
            border-radius: 40px 40px 0 0;
            margin-top: 40px;
        }

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

        .social-link {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--bg-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 10px;
            color: var(--text-primary);
            text-decoration: none;
            font-size: 1.2rem;
            box-shadow: 0 5px 15px var(--shadow);
            transition: all 0.3s ease;
        }

        .social-link:hover {
            transform: translateY(-5px);
            color: var(--accent);
        }

        /* Cursor Effect */
        .cursor-effect {
            position: fixed;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--accent);
            mix-blend-mode: difference;
            pointer-events: none;
            transform: translate(-50%, -50%);
            z-index: 9999;
            opacity: 0.5;
            transition: transform 0.1s ease;
        }

        /* Responsive Design */
        @media (max-width: 1100px) {
            .mood-switch {
                width: 120px;
            }
            
            .mood-option {
                display: none;
            }
            
            .mood-option:nth-child(2), .mood-option:nth-child(5) {
                display: block;
            }
        }

        @media (max-width: 992px) {
            .about-container, .contact-container {
                grid-template-columns: 1fr;
            }
            
            h1 {
                font-size: 2.8rem;
            }
            
            h2 {
                font-size: 2rem;
            }

            .theme-indicator {
                display: none;
            }
        }

        @media (max-width: 768px) {
            body {
                padding-top: 70px;
            }

            nav {
                padding: 10px 0;
            }

            .hamburger {
                display: block;
            }
            
            .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                width: 70%;
                height: 100vh;
                background: var(--nav-bg);
                flex-direction: column;
                align-items: center;
                justify-content: center;
                transition: right 0.3s ease;
                box-shadow: -5px 0 25px var(--shadow);
            }
            
            .nav-links.active {
                right: 0;
            }
            
            .nav-links li {
                margin: 20px 0;
            }

            .theme-controls {
                margin-left: auto;
                margin-right: 15px;
            }
            
            .mood-switch {
                width: 100px;
            }

            .hero {
                padding: 80px 0 60px;
            }
        }

        @media (max-width: 576px) {
            h1 {
                font-size: 2.2rem;
            }
            
            h2 {
                font-size: 1.8rem;
            }

            .portrait {
                max-width: 300px;
                height: 300px;
            }

            .mood-switch {
                width: 80px;
                height: 25px;
            }

            .mood-slider {
                width: 40px;
                height: 20px;
            }

            .theme-controls {
                gap: 10px;
            }
        }
:root {
  --accent: #4f8cff;
  --accent-light: #bad7ff;
  --bg-glass: rgba(20, 22, 40, 0.82);
  --bubble-user: linear-gradient(135deg, #4f8cff 60%, #1a2a4a 100%);
  --bubble-ai: linear-gradient(135deg, #23263a 40%, #313567 100%);
  --shadow: rgba(79, 140, 255, 0.26);
  --border: rgba(120,130,220,0.13);
}
/* Chatbot Button */
#chatbot-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6e5dfc, #ff6ec7);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  transition: transform 0.2s, box-shadow 0.3s;
  z-index: 1000;
}
#chatbot-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(0,0,0,0.7);
}

/* Chatbox */
#chatbot-box {
     z-index: 1100;
  display: none;
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 420px;
  max-height: 75vh;
  background: #1a1a1a;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  font-family: "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 15px;
  color: #fff;
  border: 1px solid #444;
  animation: fadeIn 0.3s ease;
}

/* Header */
#chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #6e5dfc, #ff6ec7);
  padding: 12px 16px;
  font-weight: bold;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
#chat-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
}
#chat-close:hover {
  color: #ff4c4c;
}

/* Messages */
#chat-messages {
  padding: 16px;
  overflow-y: auto;
  max-height: 55vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Message bubbles */
.msg {
  padding: 12px 16px;
  border-radius: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  font-size: 15px;
  max-width: 80%;
  transition: transform 0.2s;
}
.msg.user {
  background: #3a4a7f;
  align-self: flex-end;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.msg.user:hover {
  transform: scale(1.02);
}
.msg.model, .msg.ai {
  background: #2b2b2b;
  align-self: flex-start;
  color: #ddd;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.msg.model:hover, .msg.ai:hover {
  transform: scale(1.02);
}

/* Input */
#user-input {
  width: calc(100% - 32px);
  margin: 12px 16px 16px;
  padding: 14px 16px;
  border-radius: 15px;
  border: 1px solid #444;
  background: #0d0d0d;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
#user-input:focus {
  border: 1px solid #6e5dfc;
  box-shadow: 0 0 8px #6e5dfc;
}

/* Scrollbar */
#chat-messages::-webkit-scrollbar {
  width: 8px;
}
#chat-messages::-webkit-scrollbar-track {
  background: #1a1a1a;
}
#chat-messages::-webkit-scrollbar-thumb {
  background: #6e5dfc;
  border-radius: 4px;
}

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