/* Global Styles */
:root {
    /* Base colors - now dark theme by default */
    --primary-color: #8d8dff;
    --secondary-color: #a0a0ff;
    --accent-color: #c0c0ff;
    --dark-color: #e0e0e0;
    --light-color: #f8f9fa; /* Keep light color for potential use, but not as default theme */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --code-color: #03045e;
    --data-color: #b0b0ff;
    --max-width: 1200px;
    
    /* Theme colors - default to dark theme */
    --bg-color: #1a1a2e;
    --text-color: #e0e0e0;
    --card-bg: #2a2a4a;
    --border-color: #4a4a6a;
    --header-bg: rgba(26, 26, 46, 0.95);
    --hero-gradient: linear-gradient(135deg, #0f0f2f 0%, #1a1a2e 100%);
    --section-bg-1: #1a1a2e;
    --section-bg-2: #2a2a4a;
    --footer-bg: linear-gradient(135deg, #0f0f2f 0%, #1a1a2e 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 180, 216, 0.05) 2%, transparent 10%),
        radial-gradient(circle at 75% 75%, rgba(114, 9, 183, 0.05) 2%, transparent 10%),
        radial-gradient(circle at 50% 50%, rgba(0, 119, 182, 0.05) 2%, transparent 10%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px, 15px 15px;
    z-index: -1;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: -1;
}

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

.primary-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.6);
}

.secondary-btn {
    background-color: transparent;
    color: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.2);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

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

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

.section-header h2::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300b4d8' width='24px' height='24px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

.section-header h2::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300b4d8' width='24px' height='24px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    right: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    opacity: 0.5;
}

.underline {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

section {
    padding: 5rem 2rem;
    display: block;
    min-height: auto;
}

@media screen and (max-width: 768px) {
    section {
        padding: 4rem 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    section {
        padding: 3rem 1rem;
    }
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

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

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

#theme-switcher {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#theme-switcher:hover {
    background-color: var(--secondary-color);
}

.hero {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--hero-gradient);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

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

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    width: 100%;
    z-index: 1;
}

.hero-text {
    flex: 1;
    padding-right: 2rem;
    color: white;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text h1 span {
    color: var(--data-color);
    position: relative;
    display: inline-block;
}

.hero-text h1 span::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.hero-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(76, 201, 240, 0.3) 0%, rgba(0, 180, 216, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

.hero-image img {
    max-width: 80%;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.1);
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 0.5rem;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

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

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

.about-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.about-text h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--secondary-color);
}

.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

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

.skills {
    margin-top: 3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.skill-tags span {
    background-color: #e9ecef;
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
body.dark-theme .skill-tags span {
    background-color: #2a2a4a;
    color: #e0e0e0;
}

.skill-tags span:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Experience Section */
.experience {
    background-color: var(--section-bg-2);
}

.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.experience-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

.experience-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    z-index: 2;
}

.experience-content {
    position: relative;
    width: 45%;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

.experience-item:nth-child(even) .experience-content {
    left: 55%;
}

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

.experience-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.experience-content .duration {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.experience-content ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.experience-content ul li {
    margin-bottom: 0.5rem;
}

/* Education Section */
.education {
    background-color: var(--section-bg-1);
}

.education-item {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.education-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.education-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.education-item p {
    margin-bottom: 0.5rem;
}

.education-item .duration {
    font-size: 0.9rem;
    color: #6c757d;
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.project-card.skeleton {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.05) 0%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.05) 100%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

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

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

.project-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.7));
}

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

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

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.project-info h3::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.project-card:hover .project-info h3::after {
    width: 100%;
}

.project-info p {
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

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

.project-tags span {
    background-color: rgba(0, 180, 216, 0.1);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 180, 216, 0.1);
}

.project-tags span:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

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

.project-links a {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.project-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

.project-links a i {
    margin-right: 0.3rem;
}

/* Blogs Section */
.blogs {
    background-color: var(--section-bg-1);
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.blog-card {
    background-color: var(--card-bg);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.blog-card.skeleton {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.05) 0%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.05) 100%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
}

.blog-card:hover {
    transform: translateY(-10px);
}

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

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

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

.blog-info {
    padding: 1.5rem;
}

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

.blog-info .date {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.blog-info p {
    margin-bottom: 1rem;
}

.blog-info a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-info a:hover {
    color: var(--secondary-color);
}

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

.contact-content {
    display: flex;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 2rem;
}

.contact-info {
    flex: 1;
    padding-right: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-item a {
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    flex: 1;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

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

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 4rem 2rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-nav h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.footer-nav h4::after,
.footer-contact h4::after,
.footer-social h4::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    margin-bottom: 0.8rem;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-nav ul li a i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.footer-nav ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-nav ul li a:hover i {
    transform: scale(1.2);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 0.8rem;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.footer-social .social-icons {
    display: flex;
    gap: 0.8rem;
}

.footer-social .social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social .social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.4);
}

.footer-bottom {
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Footer */
@media screen and (max-width: 991px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        padding: 3rem 2rem 2rem;
    }
}

@media screen and (max-width: 767px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 1.5rem 2rem;
        text-align: center;
    }
    
    .footer-nav h4::after,
    .footer-contact h4::after,
    .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-nav ul li a {
        justify-content: center;
    }
    
    .footer-nav ul li a:hover {
        transform: translateX(0) translateY(-3px);
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .footer-social .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        padding: 1.5rem 1rem;
    }
}

/* Research Papers Section */
.research {
    padding: 5rem 1rem;
    background-color: var(--bg-color);
}

.research-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.research-info {
    flex: 1;
    padding: 1rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.research-info h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.research-info p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.pdf-container {
    flex: 2;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
}

#pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
    box-sizing: border-box;
    background-color: white;
}

/* Media Queries for Research Section */
@media (min-width: 768px) {
    .research-container {
        flex-direction: row;
    }
    
    .research-info {
        max-width: 30%;
    }
    
    .pdf-container {
        flex: 2;
    }
}

@media (max-width: 767px) {
    .research-container {
        flex-direction: column;
    }
    
    .research-info {
        max-width: 100%;
    }
    
    .pdf-container {
        height: 300px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    #pdf-viewer {
        display: none;
    }
    
    .pdf-container::before {
        content: "PDF Viewer not available on mobile\A\APlease use the Download or View buttons below";
        white-space: pre-wrap;
        text-align: center;
        color: #999;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .research {
        padding: 4rem 1rem;
    }
    
    .research-info {
        padding: 1rem 0.75rem;
    }
    
    .pdf-container {
        height: 250px;
        width: 100%;
    }
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    display: block;
}
/* Section intro text styles */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Footer links styles - improved UI */
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.3rem 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.footer-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.location {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive adjustments for section intro */
@media screen and (max-width: 767px) {
    .section-intro {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .footer-links {
        gap: 0.8rem;
        margin: 1.2rem 0;
        padding: 0.7rem 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 575px) {
    .section-intro {
        font-size: 0.95rem;
    }
    
    .footer-links {
        padding: 0.6rem;
        border-radius: 20px;
        width: 90%;
        margin: 1rem auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        text-align: center;
    }
    
    .footer-links a {
        padding: 0.4rem 0.2rem;
        font-size: 0.85rem;
    }
    
    .footer-links a i {
        display: block;
        margin-bottom: 0.2rem;
        font-size: 1rem;
    }
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

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

#location-greeting {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

#location-greeting.show {
    opacity: 1;
    transform: translateY(0);
}
/* Skills Constellation Map */
.skills {
    padding: 80px 0;
    background: var(--section-bg-2);
    position: relative;
    overflow: hidden;
}

#constellation-container {
    position: relative;
    max-width: 800px;
    height: 600px;
    margin: 0 auto;
    background: radial-gradient(circle at center, rgba(0, 180, 216, 0.05) 0%, transparent 70%);
    border-radius: 20px;
}

#constellation-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.connection-line {
    stroke: rgba(0, 180, 216, 0.3);
    stroke-width: 1;
    opacity: 0.6;
    animation: pulse-line 3s ease-in-out infinite;
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.skill-node {
    position: absolute;
    z-index: 2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.skill-node:nth-child(odd) {
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Core Skills (Center) */
.core-skill {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #8d8dff 0%, #6b6bff 100%);
    box-shadow: 0 0 30px rgba(141, 141, 255, 0.6), 0 0 60px rgba(141, 141, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.core-skill:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(141, 141, 255, 0.8), 0 0 80px rgba(141, 141, 255, 0.4);
}

/* Cluster Skills */
.cluster-skill {
    width: 70px;
    height: 70px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.ai-cluster {
    background: radial-gradient(circle, #9C27B0 0%, #7B1FA2 100%);
    box-shadow: 0 0 20px rgba(156, 39, 176, 0.5);
}

.cloud-cluster {
    background: radial-gradient(circle, #2196F3 0%, #1976D2 100%);
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.5);
}

.data-cluster {
    background: radial-gradient(circle, #4CAF50 0%, #388E3C 100%);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.tools-cluster {
    background: radial-gradient(circle, #FF9800 0%, #F57C00 100%);
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.5);
}

.web-cluster {
    background: radial-gradient(circle, #E91E63 0%, #C2185B 100%);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.5);
}

.cluster-skill:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Skill Content */
.skill-content {
    text-align: center;
    color: white;
    font-weight: 600;
}

.skill-name {
    display: block;
    font-size: 0.8rem;
    line-height: 1;
}

.core-skill .skill-name {
    font-size: 0.9rem;
}

.skill-level {
    display: block;
    font-size: 0.6rem;
    opacity: 0.9;
    margin-top: 2px;
}

.core-skill .skill-level {
    font-size: 0.7rem;
}

/* Proficiency-based sizing */
.skill-node[data-proficiency="95"], .skill-node[data-proficiency="92"] {
    animation-duration: 4s;
}

.skill-node[data-proficiency="90"], .skill-node[data-proficiency="88"] {
    width: 75px;
    height: 75px;
}

.skill-node[data-proficiency="85"], .skill-node[data-proficiency="83"] {
    width: 65px;
    height: 65px;
}

.skill-node[data-proficiency="80"], .skill-node[data-proficiency="78"] {
    width: 60px;
    height: 60px;
}

.skill-node[data-proficiency="75"], .skill-node[data-proficiency="70"] {
    width: 55px;
    height: 55px;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    #constellation-container {
        height: 500px;
        transform: scale(0.8);
        margin: -50px auto;
    }
    
    .skill-node {
        width: 50px !important;
        height: 50px !important;
    }
    
    .core-skill {
        width: 70px !important;
        height: 70px !important;
    }
    
    .skill-name {
        font-size: 0.6rem !important;
    }
    
    .skill-level {
        font-size: 0.5rem !important;
    }
}
/* Dashboard-Style Skills Section */
.skills-dashboard {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.skill-category-box {
    background: linear-gradient(145deg, rgba(42, 42, 74, 0.8), rgba(26, 26, 46, 0.9));
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 180, 216, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 180, 216, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.8;
}

.skill-category-box:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 180, 216, 0.4);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 180, 216, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.category-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-item:hover {
    padding-left: 10px;
    background: rgba(0, 180, 216, 0.05);
    border-radius: 8px;
    border-bottom-color: transparent;
}

.skill-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.skill-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 180, 216, 0.3));
}

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

.skill-progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 200px;
}

.skill-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--accent-color) 100%);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.4);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Dashboard Responsive Design */
@media (max-width: 768px) {
    .skills-dashboard {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .skill-category-box {
        padding: 20px;
    }
    
    .category-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .skill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .skill-progress-container {
        width: 100%;
        max-width: none;
    }
    
    .skill-info {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .skill-category-box {
        padding: 15px;
    }
    
    .skill-items {
        gap: 15px;
    }
    
    .skill-item {
        padding: 10px 0;
    }
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Mobile Navigation Styles */
@media screen and (max-width: 768px) {
    nav {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: var(--header-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        padding: 2rem;
    }
    
    .nav-links.nav-active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
        opacity: 0;
        animation: navLinkFade 0.5s ease forwards;
        list-style: none;
    }
    
    .nav-links li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links li:nth-child(4) { animation-delay: 0.4s; }
    .nav-links li:nth-child(5) { animation-delay: 0.5s; }
    .nav-links li:nth-child(6) { animation-delay: 0.6s; }
    .nav-links li:nth-child(7) { animation-delay: 0.7s; }
    .nav-links li:nth-child(8) { animation-delay: 0.8s; }
    
    .nav-links a {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--dark-color);
        display: block;
        padding: 0.5rem 1rem;
        text-align: center;
    }
    
    .burger {
        display: block;
        z-index: 1001;
    }
    
    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger.toggle .line2 {
        opacity: 0;
    }
    
    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    #theme-switcher {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mobile Hero Section */
@media screen and (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 6rem 1rem 4rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .hero::before {
        opacity: 0.3;
    }
    
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
        width: 100%;
        z-index: 2;
    }
    
    .hero-text {
        padding-right: 0;
        flex: none;
        z-index: 2;
        position: relative;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        white-space: nowrap;
        overflow: hidden;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin: 1.5rem 0;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        position: relative;
        z-index: 2;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 0.8rem 1.5rem;
    }
    
    .hero-image {
        flex: none;
        order: -1;
        z-index: 2;
        position: relative;
    }
    
    .hero-image img {
        width: 250px;
        height: 250px;
        max-width: 80vw;
        max-height: 80vw;
    }
    
    .social-icons {
        margin-top: 2rem;
        z-index: 3;
        position: relative;
    }
    
    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Mobile Section Headers */
@media screen and (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header h2::before,
    .section-header h2::after {
        display: none;
    }
}

/* Mobile Container Padding */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

/* Mobile Cards and Grid Layouts */
@media screen and (max-width: 768px) {
    .experience-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card h3 {
        font-size: 1.3rem;
    }
}

/* Mobile Footer Improvements */
@media screen and (max-width: 768px) {
    .footer-bottom {
        padding: 1.5rem;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Mobile Form Styles */
@media screen and (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-info {
        padding-right: 0;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
        flex: 1;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Mobile Blog Cards */
@media screen and (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card {
        padding: 1.5rem;
    }
}

/* Mobile Timeline */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
        margin-bottom: 2rem;
    }
    
    .timeline-dot {
        left: 6px;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .experience-timeline::before {
        left: 20px;
        transform: translateX(0);
    }
    
    .experience-dot {
        left: 20px;
        transform: translateX(0);
    }
    
    .experience-item {
        width: 100%;
        margin-bottom: 2rem;
        padding-left: 60px;
    }
    
    .experience-item:nth-child(odd) .experience-content,
    .experience-item:nth-child(even) .experience-content {
        position: relative;
        width: 100%;
        left: auto;
        margin-left: 0;
        padding: 1.5rem;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text h2 {
        font-size: 1.1rem;
    }
    
    .hero-image img {
        width: 200px;
        height: 200px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
}
/* Additional Mobile Improvements */

/* Fix overflow issues on mobile */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    /* Improve touch targets */
    .nav-links a,
    .btn,
    .social-icons a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better spacing for mobile */
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    /* Mobile-friendly project cards */
    .project-card {
        margin-bottom: 2rem;
    }
    
    .project-card img {
        height: 200px;
        object-fit: cover;
    }
    
    /* Mobile skills section */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Mobile about section */
    .about-content {
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Mobile experience timeline */
    .experience-timeline {
        padding-left: 0;
    }
    
    /* Mobile contact section */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Improve button spacing on mobile */
    .btn-group {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

/* Extra small devices */
@media screen and (max-width: 375px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .hero-text h2 {
        font-size: 1rem;
    }
    
    .hero-image img {
        width: 180px;
        height: 180px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .card {
        padding: 0.75rem;
    }
    
    .nav-links a {
        font-size: 1.1rem;
    }
    
    nav {
        padding: 1rem 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
}

/* Landscape mobile orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 6rem 1rem 2rem;
        min-height: auto;
    }
    
    .nav-links {
        padding-top: 2rem;
    }
    
    .nav-links li {
        margin: 0.75rem 0;
    }
}
/* Mobile Grid and Layout Fixes */
@media screen and (max-width: 768px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    /* Fix container widths */
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Fix grid layouts */
    .projects-grid,
    .experience-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Fix about section */
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
        align-self: center;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 2rem;
    }
    
    /* Fix skills section */
    .skills-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Fix contact section */
    .contact-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
        padding: 2rem 1.5rem;
    }
    
    /* Fix social icons */
    .social-icons {
        justify-content: center;
        margin-top: 2rem;
    }
    
    /* Fix buttons */
    .btn-group {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Fix typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Fix cards */
    .card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Fix timeline */
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item {
        padding-left: 3rem;
    }
    
    .timeline-item::before {
        left: 0.75rem;
    }
}
/* Typing Animation Mobile Fix */
@media screen and (max-width: 768px) {
    .typing {
        display: inline-block;
        min-height: 1.5em;
        white-space: nowrap;
    }
    
    .hero-text h2 {
        min-height: 2em;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Prevent text overflow on very small screens */
@media screen and (max-width: 480px) {
    .typing {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 375px) {
    .typing {
        font-size: 0.8em;
    }
}
/* CRITICAL: Fix Horizontal Overflow Issues */

/* Global overflow fix */
html, body {
    overflow-x: hidden;
    width: 100%;
}

* {
    box-sizing: border-box;
}

/* Fix section header decorative elements on mobile */
@media screen and (max-width: 768px) {
    .section-header h2::before,
    .section-header h2::after {
        display: none !important;
    }
    
    /* Fix constellation container overflow */
    #constellation-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        transform: none !important;
        overflow: hidden;
    }
    
    /* Fix skill nodes positioning */
    .skill-node {
        position: absolute !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }
    
    /* Constrain all absolute positioned elements */
    .hero-image::before {
        width: 200px !important;
        height: 200px !important;
    }
    
    /* Fix timeline positioning */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-dot {
        left: 6px;
    }
    
    /* Fix experience timeline */
    .experience-timeline::before {
        left: 20px;
        transform: translateX(0);
    }
    
    .experience-dot {
        left: 11px;
        transform: translateX(0);
    }
    
    .experience-item {
        width: 100%;
        padding-left: 0;
        margin-bottom: 2rem;
    }
    
    .experience-content {
        width: 100%;
        left: 0;
    }
    
    /* Ensure all containers respect viewport width */
    .container {
        max-width: 100%;
    }
    
    .hero-content,
    .skills-dashboard,
    .projects-grid,
    .blog-grid {
        overflow: auto;
    }
    
    /* Fix particles.js container */
    #particles-js {
        width: 100vw !important;
        max-width: 100% !important;
        overflow: hidden;
    }
}
/* Fix Skills Dashboard Mobile Layout */
@media screen and (max-width: 768px) {
    .skills-dashboard {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 0 10px !important;
        max-width: 100% !important;
    }
    
    .skill-category-box {
        padding: 15px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .skill-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .skill-progress {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Fix Education/Experience Sections */
@media screen and (max-width: 768px) {
    .education-item {
        padding: 1.5rem;
        margin: 0;
        width: 100%;
    }
}

/* Fix About Section Mobile */
@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Fix Contact Section Mobile */
@media screen and (max-width: 768px) {
    .contact-form {
        padding: 1.5rem 1rem;
    }
}

/* Fix Projects Section Mobile */
@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        width: 100%;
        margin: 0;
    }
    
    .project-image img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
}
/* FINAL OVERFLOW PREVENTION */
@media screen and (max-width: 768px) {
    /* Specific fixes for common overflow culprits */
    img, svg, canvas, video {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Ensure text doesn't overflow */
    h1, h2, h3, h4, h5, h6, p, span {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}
