/* General Styles */
:root {
    --primary-color: #007bff;
    --accent-color: #00bfff;
    --text-color: #333;
    --bg-color: #f4f4f4;
    --card-bg: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --section-padding: 80px 20px;
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

.dark-theme {
    --primary-color: #00bfff;
    --accent-color: #ff6b6b;
    --text-color: #f0f0f0;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
    padding-top: 80px; /* Added for fixed navbar */
}

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

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 4px 0;
    min-height: 40px;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.nav-logo-img {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: 1px solid var(--primary-color);
    transition: var(--transition);
}

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

.nav-links a {
    color: white;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 1.05rem;
    padding: 4px 8px;
}

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

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

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

.theme-toggle {
    margin-left: 18px;
}

.nav-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Section Styling */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

.light-background {
    background-color: rgba(255, 255, 255, 0.05);
}

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

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-color);
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preloader-text {
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--text-color);
    animation: pulse 1.5s infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999;
    transition: all 0.1s ease;
    transform-origin: 100% 100%;
    backdrop-filter: invert(1);
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 998;
    transition: all 0.4s ease;
}

.cursor.active {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: var(--primary-color);
    opacity: 0.5;
}

.cursor-follower.active {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-switch {
    opacity: 0;
    position: absolute;
}

.theme-label {
    width: 60px;
    height: 30px;
    background: #111;
    display: flex;
    border-radius: 50px;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    position: relative;
    transform: scale(1.2);
    cursor: pointer;
}

.theme-ball {
    width: 24px;
    height: 24px;
    background: white;
    position: absolute;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    transition: transform 0.2s linear;
}

.theme-label i {
    color: #f1c40f;
    font-size: 14px;
}

.theme-label .fa-sun {
    opacity: 0;
    transform: translateX(20px) rotate(180deg);
    transition: all 0.3s ease;
}

.theme-label .fa-moon {
    opacity: 1;
    transform: translateX(0) rotate(0);
    transition: all 0.3s ease;
}

.theme-switch:checked + .theme-label .theme-ball {
    transform: translateX(30px);
}

.theme-switch:checked + .theme-label .fa-sun {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

.theme-switch:checked + .theme-label .fa-moon {
    opacity: 0;
    transform: translateX(-20px) rotate(180deg);
}

/* Home Section */
.home-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 0;
    margin-top: -80px;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0.7;
}

.particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.home-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.home-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.typewriter {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 600;
    min-height: 60px;
}

/* Tech Stack Icons */
.tech-stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 40px 0;
}

.tech-stack i {
    font-size: 3rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    cursor: default;
}

.tech-stack i:hover {
    transform: translateY(-10px) scale(1.2);
    color: var(--accent-color);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1rem;
    color: #fff;
    background-color: var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icon {
    font-size: 2rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

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

/* About Section */
.about-section {
    padding: var(--section-padding);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-photo {
    flex: 1;
    min-width: 400px;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.about-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.about-photo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0.2;
    z-index: 1;
}

.about-photo .glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 2;
    animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
    0% { opacity: 0.1; }
    100% { opacity: 0.3; }
}

.about-text {
    flex: 1;
    padding: 20px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* Timeline */
.timeline-container {
    margin: 40px 0;
}

.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--bg-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

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

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

.timeline-content {
    padding: 20px;
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.timeline-content p {
    margin-bottom: 5px;
}

.timeline-date {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Responsive Timeline */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
}

/* Skills Section */
.skills-section {
    background-color: rgba(0, 0, 0, 0.03);
}

.skills-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.category-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 600;
}

.skill-percent {
    color: var(--accent-color);
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 5px;
    transition: width 1s ease;
}

/* Projects Section */
.projects-section {
    background-color: rgba(0, 0, 0, 0.03);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

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

.project-image-container {
    height: 250px;
    position: relative;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-preview {
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    background: var(--primary-color);
    transition: var(--transition);
}

.project-preview:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.project-info {
    padding: 25px;
}

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

.project-info p {
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

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

.project-tech span {
    background: rgba(0, 0, 0, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.project-link.secondary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.project-link.secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Certificates Section */
.certificates-section {
    background-color: rgba(0, 0, 0, 0.03);
}

.typewriter-container {
    text-align: center;
    margin-bottom: 40px;
}

.typewriter {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: inline-block;
}

.certificates-slider {
    max-width: 1200px;
    margin: 0 auto;
}

.glider-contain {
    position: relative;
}

.glider {
    overflow: hidden;
}

.certificate-item {
    padding: 30px;
    margin: 0 15px;
    text-align: center;
    transition: var(--transition);
}

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

.certificate-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
}

.certificate-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.certificate-item p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.certificate-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

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

.glider-prev, .glider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
}

.glider-prev:hover, .glider-next:hover {
    background: var(--accent-color);
}

.glider-prev {
    left: -20px;
}

.glider-next {
    right: -20px;
}

.dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dots button {
    width: 12px;
    height: 12px;
    background: #ccc;
    border: none;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dots button.active {
    background: var(--primary-color);
}

/* Contact Section */
.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-info:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-method a {
    transition: var(--transition);
}

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

.contact-social {
    margin-top: 40px;
}

.contact-social h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.contact-form {
    flex: 2;
    min-width: 300px;
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-form:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

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

.form-group i {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-color);
}

.contact-form textarea {
    border-radius: 20px;
    min-height: 150px;
    resize: vertical;
    padding-top: 20px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    transition: var(--transition);
    z-index: 1;
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn span, .submit-btn i {
    position: relative;
    z-index: 2;
}

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

#formStatus {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}
.contact-form.glassmorphism {
    background: rgba(255, 255, 255, 0.8); /* Increased opacity */
}

/* Chatbot */
.chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.chatbot-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
    position: relative;
}

.chatbot-icon:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-window {
    width: 250px;
    height: 340px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 30px var(--shadow-color);
    position: absolute;
    bottom: 60px;
    right: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.chatbot-window.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

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

.chatbot-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
}

.chatbot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chatbot-info {
    flex: 1;
}

.chatbot-info h3 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.chatbot-info p {
    font-size: 0.8rem;
    opacity: 0.8;
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    transform: rotate(90deg);
}

.chatbot-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.92rem;
}

.chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.05);
    border-top-left-radius: 5px;
}

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

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

.chatbot-input {
    padding: 8px;
    display: flex;
    gap: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.chatbot-input input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    outline: none;
    transition: var(--transition);
}

.chatbot-input input:focus {
    border-color: var(--primary-color);
}

.chatbot-input button {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-input button:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

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

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

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    background: var(--card-bg);
    padding: 60px 0 30px;
    position: relative;
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    font-weight: 600;
    transition: var(--transition);
}

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

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.footer-copyright {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
   white-space: nowrap;
  
}

/* Nav Logo Image */
.nav-logo-img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.nav-logo-img:hover {
    transform: scale(1.1);
}

/* About Photo Image */
.about-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Update the existing about-photo styles */
.about-photo {
    position: relative;
    overflow: hidden;
}

/* Remove the background-image from the CSS since we're using an img tag */
.about-photo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0.2;
    z-index: 1;
}

/* Nav Logo Image - COMPACT VERSION */
.nav-logo-img {
    height: 22px;
    width: 22px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: 1px solid var(--primary-color);
    transition: var(--transition);
}

/* Navbar - COMPACT VERSION */
.navbar {
    padding: 0 0;
    min-height: 30px;
}

.nav-logo {
    font-size: 1.3rem;
}

.nav-links {
    gap: 10px;
}

.nav-links a {
    font-size: 0.95rem;
    padding: 2px 4px;
}

.theme-toggle {
    margin-left: 10px;
}

/* Slightly increase navigation bar and logo size for better visibility */
.navbar {
    min-height: 40px;
    padding: 4px 0;
}

.nav-logo-img {
    height: 32px;
    width: 32px;
}

.nav-logo {
    font-size: 1.5rem;
}

.nav-links {
    gap: 16px;
}

.nav-links a {
    font-size: 1.05rem;
    padding: 4px 8px;
}

.theme-toggle {
    margin-left: 18px;
}

@media (max-width: 600px) {
    .navbar {
        min-height: 32px;
    }
    .nav-logo-img {
        height: 22px;
        width: 22px;
    }
    .nav-logo {
        font-size: 1.2rem;
    }
    .nav-links {
        gap: 8px;
    }
}

/* Chatbot - REDUCED SIZE */
.chatbot-window {
    width: 250px;
    height: 340px;
    border-radius: 10px;
    bottom: 60px;
}

.chatbot-header {
    padding: 10px 14px;
    gap: 8px;
}

.chatbot-avatar {
    width: 28px;
    height: 28px;
}

.chatbot-body {
    padding: 10px;
    gap: 8px;
    font-size: 0.92rem;
}

.chatbot-input {
    padding: 8px;
    gap: 6px;
}

.chatbot-input input {
    padding: 6px 10px;
    font-size: 0.95rem;
}

.chatbot-input button {
    width: 30px;
    height: 30px;
    font-size: 1rem;
}

@media (max-width: 600px) {
    .chatbot-window {
        width: 98vw;
        max-width: 240px;
        height: 220px;
        min-width: 120px;
    }
    .chatbot-header {
        padding: 7px 8px;
    }
    .chatbot-body {
        padding: 6px;
        font-size: 0.85rem;
    }
}