/* Base Styles and Reset - Updated for navigation visibility fix */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile-first improvements */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6c757d;
    --dark-color: #0a0a0a;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --body-color: #ffffff;
    --section-light: #ffffff;
    --section-dark: #f8f9fa;
    --text-primary: #2b3940;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    --hero-text-primary: rgba(255, 255, 255, 0.95);
    --hero-text-secondary: rgba(255, 255, 255, 0.7);
    --hero-text-tertiary: rgba(255, 255, 255, 0.5);
    --body-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --heading-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--body-color);
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 5rem 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-size: 2.5rem;
}

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

.highlight {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a5bd9 100%);
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.2);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a5bd9 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.2);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* Special styling for home page navbar */
body.home .navbar {
    background-color: transparent !important;
    box-shadow: none !important;
}

body.home .navbar .logo {
    color: var(--hero-text-primary) !important;
}

body.home .navbar .nav-links a {
    color: var(--hero-text-primary) !important;
}

body.home .navbar .bar {
    background-color: var(--hero-text-primary) !important;
}

/* Ensure navigation is always visible on non-home pages */
body:not(.home) .navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

body:not(.home) .navbar .logo {
    color: var(--text-primary) !important;
}

body:not(.home) .navbar .nav-links a {
    color: var(--text-primary) !important;
}

body:not(.home) .navbar .bar {
    background-color: var(--text-primary) !important;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition);
    z-index: 1001;
}

.navbar.scrolled .logo {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    background-color: transparent;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    position: relative;
    transition: var(--transition);
}

.navbar.scrolled .nav-links a {
    color: var(--text-primary);
}

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

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

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

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 24px;
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.navbar.scrolled .bar {
    background-color: var(--text-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
    position: relative;
    overflow: hidden;
}

.shapes-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    background: linear-gradient(45deg, var(--primary-color), #00d4ff);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite;
    backdrop-filter: blur(5px);
    transition: transform 0.2s ease-out;
    box-shadow: 0 8px 32px rgba(74, 108, 247, 0.15);
}

.shape:nth-child(even) {
    background: linear-gradient(45deg, #00d4ff, var(--primary-color));
}

.shape:nth-child(3n) {
    background: linear-gradient(45deg, #4a6cf7, #ff6b6b);
}

.shape:nth-child(4n):hover {
    transform: scale(1.05) translateX(-10px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation: float 20s infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -100px;
    animation: floatReverse 25s infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: 20%;
    animation: float 30s infinite;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 20%;
    left: 30%;
    animation: floatReverse 22s infinite;
}

.shape-5 {
    width: 180px;
    height: 180px;
    bottom: 20%;
    right: 20%;
    animation: float 28s infinite;
}

.shape-6 {
    width: 220px;
    height: 220px;
    top: 30%;
    right: 35%;
    animation: floatReverse 24s infinite;
}

.shape-7 {
    width: 160px;
    height: 160px;
    top: 40%;
    left: 15%;
    animation: float 26s infinite;
}

.shape-8 {
    width: 280px;
    height: 280px;
    bottom: 30%;
    left: 35%;
    animation: floatReverse 29s infinite;
}

.shape-9 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation: float 23s infinite;
}

.shape-10 {
    width: 190px;
    height: 190px;
    top: 10%;
    right: 25%;
    animation: floatReverse 27s infinite;
}

.shape-11 {
    width: 140px;
    height: 140px;
    bottom: 15%;
    left: 10%;
    animation: float 21s infinite;
}

.shape-12 {
    width: 230px;
    height: 230px;
    top: 45%;
    right: 5%;
    animation: floatReverse 31s infinite;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    20% {
        transform: translate(50px, 20px) rotate(90deg) scale(1.1);
    }
    40% {
        transform: translate(20px, -30px) rotate(180deg) scale(0.9);
    }
    60% {
        transform: translate(-30px, 40px) rotate(270deg) scale(1.2);
    }
    80% {
        transform: translate(-40px, -20px) rotate(360deg) scale(0.8);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

@keyframes floatReverse {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    20% {
        transform: translate(-40px, -30px) rotate(-90deg) scale(0.9);
    }
    40% {
        transform: translate(-20px, 40px) rotate(-180deg) scale(1.1);
    }
    60% {
        transform: translate(40px, -20px) rotate(-270deg) scale(0.8);
    }
    80% {
        transform: translate(30px, 30px) rotate(-360deg) scale(1.2);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--hero-text-primary);
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
    text-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--hero-text-secondary);
    animation: fadeInDown 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--hero-text-tertiary);
    animation: fadeInDown 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-buttons {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.hero-buttons .btn {
    margin: 0 0.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.8s;
    animation-fill-mode: both;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px !important;
    height: 70px !important;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--hero-text-primary);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.1);
    backdrop-filter: blur(5px);
    transition: var(--transition);
    font-size: 2rem !important;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.3);
}

/* About Section */
.about {
    background-color: var(--section-light);
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2rem;
    width: 100%;
}

.image-placeholder {
    width: auto;
    height: auto;
    max-width: 400px;
    max-height: 500px;
    border-radius: 12px;
    background-color: var(--section-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.image-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.profile-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.about-text {
    flex: 2;
    padding-top: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-primary);
    text-align: justify;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

.about-details {
    margin-top: 2rem;
}

.detail {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.detail i {
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Skills Section */
.skills {
    background-color: var(--section-dark);
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    width: 100%;
}

.skill-name {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.skill-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 1.5s ease;
}

/* Projects Section */
.projects {
    background-color: var(--section-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.project-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--section-dark);
}

.project-image .image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
    font-size: 3rem;
}

.project-info {
    padding: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.project-tags span {
    background-color: var(--section-dark);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links .btn {
    background-color: var(--dark-color);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.project-links .btn:hover {
    background-color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Enhanced Project List Styles */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-item:not(:last-child)::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin-top: 2rem;
    opacity: 0.3;
}

.project-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.project-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
}

.project-status {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.project-status.completed {
    background-color: rgba(34, 197, 94, 0.9);
}

.project-status.beta {
    background-color: rgba(251, 191, 36, 0.9);
}

.project-status.active {
    background-color: rgba(59, 130, 246, 0.9);
}

.project-status.in-progress {
    background-color: rgba(168, 85, 247, 0.9);
}

.project-content {
    padding: 2rem;
}

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

.project-section {
    margin: 2rem 0;
}

.project-section h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--section-light);
    padding-bottom: 0.5rem;
}

.project-section h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* Grid Layouts */
.impact-grid,
.responsibilities-grid,
.features-grid,
.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.impact-item,
.responsibility-item,
.feature-item,
.finding-item {
    background-color: var(--section-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.impact-item:hover,
.responsibility-item:hover,
.feature-item:hover,
.finding-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.impact-item h5,
.responsibility-item h5,
.feature-item h5,
.finding-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.impact-item p,
.responsibility-item p,
.feature-item p,
.finding-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.highlight-box {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--secondary-color);
}

.highlight-box p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.project-status-section {
    background-color: var(--section-light);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    border-left: 4px solid var(--secondary-color);
}

.project-status-section p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.project-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    text-decoration: none;
}

/* Future Projects Section */
.future-projects-section {
    background-color: var(--section-light);
    border-radius: var(--border-radius);
    margin-top: 3rem;
    border: 1px solid #e2e8f0;
}

.future-projects-content {
    padding: 2rem;
    text-align: center;
}

.future-projects-note {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background-color: var(--section-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-item h3 {
    margin-bottom: 0.3rem;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
    background-color: white;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.25);
}

.contact .btn-outline {
    background-color: var(--dark-color);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.contact .btn-outline:hover {
    background-color: var(--text-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact .social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--dark-color);
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.contact .social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.3);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: white;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 0 1rem;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-details .detail {
        justify-content: center;
    }
    
    .skill-category h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .skill-category h3 {
        display: block;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 3.5rem;
        color: var(--hero-text-primary) !important;
        background: none !important;
        -webkit-text-fill-color: unset !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .social-icons {
        gap: 1rem;
    }
    
    .social-icons a {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.8rem !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 100px 30px 40px;
        transition: 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1.2rem 0;
        text-align: center;
    }
    
    .nav-links a {
        color: var(--text-primary);
        font-size: 1.1rem;
        font-weight: 500;
        padding: 0.5rem 1rem;
        display: block;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background-color: var(--primary-color);
        color: white;
        transform: translateX(5px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        padding: 0 1rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        color: var(--hero-text-primary) !important;
        background: none !important;
        -webkit-text-fill-color: unset !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .hero h2 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .about-image {
        order: 1;
        padding-top: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .image-placeholder {
        max-width: 300px;
        max-height: 400px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }
    
    .profile-image {
        display: block;
        margin: 0 auto;
        max-width: 100%;
        height: auto;
    }
    
    .about-text {
        order: 2;
        text-align: left;
        padding-top: 0;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: justify;
        margin-bottom: 1.2rem;
    }
    
    .about-details .detail {
        justify-content: flex-start;
        margin-bottom: 1.2rem;
    }
    
    .about-details .detail i {
        font-size: 1.1rem;
        margin-right: 0.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.8rem;
    }
    
    .navbar {
        padding: 0.6rem 0.8rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-links {
        width: 90%;
        max-width: 280px;
        padding: 90px 20px 30px;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
    
    .hero {
        padding: 0 0.8rem;
        min-height: 100vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1.2rem;
        color: var(--hero-text-primary) !important;
        background: none !important;
        -webkit-text-fill-color: unset !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .hero h2 {
        font-size: 1.2rem;
        line-height: 1.2;
        margin-bottom: 1.2rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.8rem;
        padding: 0 0.5rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        margin: 0;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .social-icons {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-icons a {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .image-placeholder {
        max-width: 250px;
        max-height: 320px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }
    
    .profile-image {
        display: block;
        margin: 0 auto;
        max-width: 100%;
        height: auto;
    }
    
    .about-text p {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: justify;
        margin-bottom: 1rem;
    }
    
    .about-details .detail {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .about-details .detail i {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-links {
        gap: 0.8rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
}

/* Additional mobile-specific improvements */
@media (max-width: 768px) {
    /* Improve touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-icons a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve form usability */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    /* Better spacing for mobile */
    section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Improve readability */
    p, li {
        line-height: 1.6;
    }
    
    /* Better image handling */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Improve project cards on mobile */
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .project-links .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Enhanced project layout mobile styles */
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .project-header h3 {
        font-size: 1.3rem;
    }
    
    .project-status {
        align-self: flex-start;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-description {
        font-size: 1rem;
    }
    
    .impact-grid,
    .responsibilities-grid,
    .features-grid,
    .findings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .impact-item,
    .responsibility-item,
    .feature-item,
    .finding-item {
        padding: 1rem;
    }
    
    .highlight-box {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .project-status-section {
        padding: 1rem;
    }
    
    /* Future projects mobile styles */
    .future-projects-content {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    /* Extra small screens */
    section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 0.8rem;
    }
    
    /* Stack project links vertically */
    .project-links {
        flex-direction: column;
    }
    
    /* Improve skill bars on mobile */
    .skill-bar {
        height: 8px;
    }
    
    /* Better mobile navigation */
    .hamburger {
        padding: 8px;
    }
    
    .bar {
        height: 2px;
        margin: 4px auto;
    }
}

/* Education Section */
.education {
    background-color: var(--section-light);
    position: relative;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.education-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #3a5bd9);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.university-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
}

.education-content h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.education-content h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.education-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.education-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .education-item {
        padding: 1.2rem;
    }
    
    .university-logo {
        width: 60px;
        height: 60px;
    }
    
    .education-content h3 {
        font-size: 0.9rem;
    }
    
    .education-content h4 {
        font-size: 0.85rem;
    }
    
    .education-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .education-grid {
        gap: 1rem;
    }
    
    .education-item {
        padding: 1rem;
    }
    
    .university-logo {
        width: 50px;
        height: 50px;
    }
}

/* Publications Section */
.publications {
    background-color: var(--section-light);
}

.publication-category {
    margin-bottom: 3rem;
}

.publication-category h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.publication-group {
    margin-bottom: 2rem;
}

.publication-group h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.publication-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.publication-item {
    padding: 1.2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(74, 108, 247, 0.1);
}

.publication-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.publication-item p {
    margin-bottom: 0;
    line-height: 1.6;
    color: var(--text-primary);
}

.publication-item::after {
    content: '🔗';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
}

.publication-item:hover::after {
    opacity: 1;
}

.publication-item[href*="doi.org"]::after {
    content: '📚';
}

/* Simple list style for publications */
.publication-simple-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.publication-simple-list li {
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(74, 108, 247, 0.1);
}

.publication-simple-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.publication-simple-list li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.6;
    display: block;
    transition: color 0.3s ease;
}

.publication-simple-list li a:hover {
    color: var(--primary-color);
}

.publication-simple-list li span {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    display: block;
}

/* Mobile improvements for publications */
@media (max-width: 768px) {
    .publication-category h3 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    .publication-group h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .publication-item {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .publication-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .publication-item::after {
        font-size: 1rem;
        right: 1rem;
    }
    
    .publication-simple-list li {
        padding: 1rem;
    }
    
    .publication-simple-list li a,
    .publication-simple-list li span {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .publication-category h3 {
        font-size: 1.3rem;
    }
    
    .publication-group h4 {
        font-size: 1rem;
    }
    
    .publication-item {
        padding: 0.8rem;
    }
    
    .publication-item p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .publication-simple-list li {
        padding: 0.8rem;
    }
    
    .publication-simple-list li a,
    .publication-simple-list li span {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Custom AI Bots Section */
.ai-bots {
    background-color: var(--section-light);
    padding: 5rem 0;
}

.bots-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2rem;
}

.bots-title-section {
    flex: 1;
}

.bots-main-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.bots-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 600px;
}

.bots-profile {
    flex-shrink: 0;
}

.bots-profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.2);
}

.video-container {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #000;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 15px;
    pointer-events: auto;
    z-index: 1;
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

.video-content {
    text-align: center;
    padding: 2rem;
}

.video-content h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.video-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 400px;
}

.watch-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.watch-video-btn:hover {
    background: linear-gradient(135deg, #cc0000 0%, #ff0000 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}

.watch-video-btn i {
    font-size: 1.3rem;
}

.video-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.video-description p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.video-fallback {
    display: none;
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-top: 1rem;
}

.video-fallback p {
    margin: 0;
    color: var(--text-secondary);
}

.video-fallback a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.video-fallback a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .ai-bots {
        padding: 3rem 0;
    }
    
    .bots-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .bots-main-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .bots-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .bots-profile-img {
        width: 100px;
        height: 100px;
    }
    
    .video-container {
        margin-bottom: 1.5rem;
    }
    
    .video-placeholder {
        height: 300px;
    }
    
    .video-content {
        padding: 1.5rem;
    }
    
    .video-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .video-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .watch-video-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .video-description {
        margin-top: 1.5rem;
    }
    
    .video-description p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .ai-bots {
        padding: 2rem 0;
    }
    
    .bots-header {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .bots-main-title {
        font-size: 2rem;
    }
    
    .bots-subtitle {
        font-size: 0.9rem;
    }
    
    .bots-profile-img {
        width: 80px;
        height: 80px;
    }
    
    .video-placeholder {
        height: 250px;
    }
    
    .video-content {
        padding: 1rem;
    }
    
    .video-content h3 {
        font-size: 1.3rem;
    }
    
    .video-content p {
        font-size: 0.9rem;
    }
    
    .watch-video-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .video-description p {
        font-size: 0.9rem;
    }
}

/* Blog Section Styles */
.blog {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.blog .section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
}

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

.blog-post {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

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

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

.blog-post:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
}

.blog-title {
    margin: 10px 0;
    font-size: 1.3em;
    color: #333;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog {
        padding: 3rem 0;
    }
    
    .blog .section-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-excerpt {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .blog {
        padding: 2rem 0;
    }
    
    .blog-grid {
        gap: 1rem;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-content {
        padding: 1rem;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
    
    .blog-excerpt {
        font-size: 0.85rem;
    }
}
